taosdata/TDengine

in C++, inserting data immediately into a new table fails with error: column type mis-match with buffer type

Open

#22,250 创建于 2023年7月31日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)C (5,002 fork)batch import
help wantedquestion

仓库指标

Star
 (24,849 star)
PR 合并指标
 (平均合并 1天 1小时) (30 天内合并 4 个 PR)

描述

现象描述: 1.第一次代码执行过程:C++连接数据后,创建一张新表,接着直接往新建表中插入一些数据,会报【failed to execute taos_stmt_bind_param_batch. error: column type mis-match with buffer type】 image image

2.第二次直接插入数据(表已存在),插入成功,不会报错。 image image

3.删除表,在【新建表】后添加睡眠10秒的逻辑,再次执行代码,现象与第一次相同。

贡献者指南