diff --git a/source/libs/parser/src/parInsertData.c b/source/libs/parser/src/parInsertData.c index b8e334c53959633bed8e6068ce12abd4d0665b08..f82c792c96bb9affb839c37c7ee82358e6c84162 100644 --- a/source/libs/parser/src/parInsertData.c +++ b/source/libs/parser/src/parInsertData.c @@ -74,7 +74,7 @@ void setBoundColumnInfo(SParsedDataColInfo* pColList, SSchema* pSchema, col_id_t default: break; } - pColList->boundColumns[i] = i + pSchema[i].colId; + pColList->boundColumns[i] = pSchema[i].colId; } pColList->allNullLen += pColList->flen; pColList->boundNullLen = pColList->allNullLen; // default set allNullLen