fix ci error

This commit is contained in:
yihaoDeng 2024-04-01 03:29:10 +00:00
parent e629e71028
commit 0e277507a4
1 changed files with 7 additions and 1 deletions

View File

@ -931,7 +931,13 @@ static bool isPrimaryKey(STempTableNode* pTable, SNode* pExpr) {
}
static bool hasPkInTable(const STableMeta* pTableMeta) {
return pTableMeta->tableInfo.numOfColumns >= 2 && pTableMeta->schema[1].flags & COL_IS_KEY;
bool hasPK = pTableMeta->tableInfo.numOfColumns >= 2 && pTableMeta->schema[1].flags & COL_IS_KEY;
if (hasPK) {
uInfo("has primary key, %s", pTableMeta->schema[1].name);
} else {
uInfo("no primary key, %s", pTableMeta->schema[1].name);
}
return hasPK;
}
static void setColumnInfoBySchema(const SRealTableNode* pTable, const SSchema* pColSchema, int32_t tagFlag,