[td-5654]<fix>: fix the bug caused by unexpected error code.
This commit is contained in:
parent
953f72ec1d
commit
f73506be56
|
@ -582,9 +582,7 @@ int32_t tsParseValues(char **str, STableDataBlocks *pDataBlock, int maxRows, SSq
|
||||||
sToken = tStrGetToken(*str, &index, false);
|
sToken = tStrGetToken(*str, &index, false);
|
||||||
*str += index;
|
*str += index;
|
||||||
if (sToken.n == 0 || sToken.type != TK_RP) {
|
if (sToken.n == 0 || sToken.type != TK_RP) {
|
||||||
tscSQLSyntaxErrMsg(pCmd->payload, ") expected", *str);
|
return tscSQLSyntaxErrMsg(pCmd->payload, ") expected", *str);
|
||||||
code = TSDB_CODE_TSC_SQL_SYNTAX_ERROR;
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
(*numOfRows)++;
|
(*numOfRows)++;
|
||||||
|
|
Loading…
Reference in New Issue