taosdata/TDengine

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

Open

#22,250 opened on Jul 31, 2023

View on GitHub
 (2 comments) (0 reactions) (0 assignees)C (5,002 forks)batch import
help wantedquestion

Repository metrics

Stars
 (24,849 stars)
PR merge metrics
 (Avg merge 1d 1h) (4 merged PRs in 30d)

Description

现象描述: 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秒的逻辑,再次执行代码,现象与第一次相同。

Contributor guide