fix(insert): return error when parsing csv file

This commit is contained in:
kailixu 2024-08-15 10:45:16 +08:00
parent 3dd17eefa6
commit cc8bff453a
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) { if (pStmt->insertType != TSDB_QUERY_TYPE_FILE_INSERT) {
return buildSyntaxErrMsg(&pCxt->msg, "keyword VALUES or FILE is exclusive", NULL); 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 // just record pTableCxt whose data come from file