Merge pull request #27229 from taosdata/fix/TD-31404-3.0

fix(insert): return error when parsing csv file
This commit is contained in:
Hongze Cheng 2024-08-15 15:51:12 +08:00 committed by GitHub
commit 6170cc1799
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -2238,6 +2238,8 @@ static int32_t parseDataFromFileImpl(SInsertParseContext* pCxt, SVnodeModifyOpSt
if (pStmt->insertType != TSDB_QUERY_TYPE_FILE_INSERT) {
return buildSyntaxErrMsg(&pCxt->msg, "keyword VALUES or FILE is exclusive", NULL);
}
} else {
return buildInvalidOperationMsg(&pCxt->msg, tstrerror(code));
}
// just record pTableCxt whose data come from file