taosdata/TDengine

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

Open

#22.250 aperta il 31 lug 2023

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)C (5002 fork)batch import
help wantedquestion

Metriche repository

Star
 (24.849 star)
Metriche merge PR
 (Merge medio 1g 1h) (4 PR mergiate in 30 g)

Descrizione

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

Guida contributor