fix: stmt with sql write make consistency

This commit is contained in:
Alex Duan 2025-02-20 17:51:22 +08:00
parent 39bc844be0
commit 12c030c578
1 changed files with 0 additions and 11 deletions

View File

@ -812,17 +812,6 @@ static int generateRandDataSQL(SSuperTable *stbInfo, char *sampleDataBuf,
continue; continue;
} }
} }
if (field->type == TSDB_DATA_TYPE_TIMESTAMP && !tag) {
n = snprintf(sampleDataBuf + pos, bufLen - pos, "now,");
if (n < 0 || n >= bufLen - pos) {
errorPrint("%s() LN%d snprintf overflow\n",
__func__, __LINE__);
return -1;
} else {
pos += n;
continue;
}
}
switch (field->type) { switch (field->type) {
case TSDB_DATA_TYPE_BOOL: { case TSDB_DATA_TYPE_BOOL: {
bool boolTmp = tmpBool(field); bool boolTmp = tmpBool(field);