fix: insert stable error

This commit is contained in:
Xiaoyu Wang 2022-11-22 20:55:24 +08:00
parent f2e2aa7722
commit 5922c725b1
1 changed files with 4 additions and 0 deletions

View File

@ -227,6 +227,10 @@ static int32_t parseBoundColumns(SInsertParseContext* pCxt, const char** pSql, S
}
}
if (pColList->cols[0].valStat == VAL_STAT_NONE) {
return buildInvalidOperationMsg(&pCxt->msg, "primary timestamp column can not be null");
}
pColList->orderStatus = isOrdered ? ORDER_STATUS_ORDERED : ORDER_STATUS_DISORDERED;
if (!isOrdered) {