fix:fix bound index error in schemaless

This commit is contained in:
wangmm0220 2022-05-27 18:30:49 +08:00
parent c66acc7c7d
commit 5aadb9d295
1 changed files with 1 additions and 1 deletions

View File

@ -1780,7 +1780,7 @@ int32_t smlBindData(void* handle, SArray* tags, SArray* colsSchema, SArray* cols
// 1. set the parsed value from sql string
for (int c = 0, j = 0; c < spd->numOfBound; ++c) {
SSchema* pColSchema = &pSchema[spd->boundColumns[c] - 1];
SSchema* pColSchema = &pSchema[spd->boundColumns[c]];
param.schema = pColSchema;
getSTSRowAppendInfo(pBuilder->rowType, spd, c, &param.toffset, &param.colIdx);