首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >TDengine的golang示例代码不起作用

TDengine的golang示例代码不起作用
EN

Stack Overflow用户
提问于 2022-03-12 12:52:50
回答 1查看 40关注 0票数 1

当运行TDengine的golang示例代码时,我会得到错误。

go代码:

代码语言:javascript
复制
// drop database if exists
sqlStr := "drop database if exists " + dbName
_, err = db.Exec(sqlStr)
checkErr(err, sqlStr)

I forgot to record the error, I only remember it shows database does not exist, same as the error2 below

And I can run these commands successfully by using the console.
error2

go code:

sqlStr := "insert into " + dbName + "." + childTblPrefix + strconv.Itoa(tID) + " values "

码头错误:

代码语言:javascript
复制
01/19 18:33:11.390574 00000029 MND ERROR msg:0x7f69d0003b40, app:0xaa table:0.log.vgroup_3, failed to get table meta, table not exist
01/19 18:33:11.391065 00000067 TSC ERROR 0xa9 get multi-tableMeta failed, code:Table does not exist
01/19 18:33:11.391518 00000038 TSC ERROR 0xa9 async result callback, code:Table does not exist
01/19 18:33:11.391917 00000036 MON ERROR table vgroup_3 not exist, create table vgroup_3
代码语言:javascript
复制
OS: wsl2 in win10
Memory, CPU, current Disk Space
TDengine Version: I test with 2.4.0.0 & 2.4.0.4 by using docker
Golang driver with Linux client 2.4.0.0

有线索吗?

EN

回答 1

Stack Overflow用户

发布于 2022-03-14 09:48:15

正如我们在日志中看到的,错误是表不存在。您必须确认表名是否正确?或者该表被其他操作程序删除。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71449853

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档