Merge pull request #25926 from taosdata/fix/TD-30231
fix:[TD-30231]case failed in sometimes
This commit is contained in:
commit
2002c69da4
|
@ -2907,7 +2907,7 @@ int32_t tColDataAddValueByDataBlock(SColData *pColData, int8_t type, int32_t byt
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (varDataTLen(data + offset) > bytes) {
|
if (varDataTLen(data + offset) > bytes) {
|
||||||
uError("var data length invalid, varDataTLen(data + offset):%d <= bytes:%d", (int)varDataTLen(data + offset),
|
uError("var data length invalid, varDataTLen(data + offset):%d >= bytes:%d", (int)varDataTLen(data + offset),
|
||||||
bytes);
|
bytes);
|
||||||
code = TSDB_CODE_PAR_VALUE_TOO_LONG;
|
code = TSDB_CODE_PAR_VALUE_TOO_LONG;
|
||||||
goto _exit;
|
goto _exit;
|
||||||
|
|
|
@ -78,7 +78,7 @@ int buildStable(TAOS* pConn) {
|
||||||
}
|
}
|
||||||
taos_free_result(pRes);
|
taos_free_result(pRes);
|
||||||
|
|
||||||
pRes = taos_query(pConn, "insert into ntba values(now,'hello')");
|
pRes = taos_query(pConn, "insert into ntba values(now + 1s,'hello')");
|
||||||
if (taos_errno(pRes) != 0) {
|
if (taos_errno(pRes) != 0) {
|
||||||
printf("failed to insert table ntba, reason:%s\n", taos_errstr(pRes));
|
printf("failed to insert table ntba, reason:%s\n", taos_errstr(pRes));
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue