[td-4175]<enhance>: improve the error message while the binary string overflow.

This commit is contained in:
Haojun Liao 2021-05-13 11:37:49 +08:00
parent 64ae1f9a36
commit 920ff4d40c
1 changed files with 3 additions and 0 deletions

View File

@ -709,6 +709,9 @@ static int32_t doParseInsertStatement(SSqlCmd* pCmd, char **str, STableDataBlock
int32_t numOfRows = 0;
code = tsParseValues(str, dataBuf, maxNumOfRows, pCmd, &numOfRows, tmpTokenBuf);
if (code != TSDB_CODE_SUCCESS) {
return code;
}
for (uint32_t i = 0; i < dataBuf->numOfParams; ++i) {
SParamInfo *param = dataBuf->params + i;