insert bugfix

This commit is contained in:
Xiaoyu Wang 2022-03-18 06:31:44 -04:00
parent eac1ccb5ec
commit e554bb4856
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ static FORCE_INLINE int32_t checkAndTrimValue(SToken* pToken, uint32_t type, cha
}
// Remove quotation marks
if (TSDB_DATA_TYPE_BINARY == type) {
if (TK_NK_STRING == pToken->type) {
if (pToken->n >= TSDB_MAX_BYTES_PER_ROW) {
return buildSyntaxErrMsg(pMsgBuf, "too long string", pToken->z);
}