fix error when modifing tag column causing exceed limit
This commit is contained in:
parent
1d77a5b0d1
commit
269a7cead6
|
@ -6073,7 +6073,7 @@ int32_t setAlterTableInfo(SSqlObj* pSql, struct SSqlInfo* pInfo) {
|
||||||
for (i = 0; i < numOfColumns; ++i) {
|
for (i = 0; i < numOfColumns; ++i) {
|
||||||
nLen += pSchema[i].colId != columnIndex.columnIndex ? pSchema[i].bytes : pItem->bytes;
|
nLen += pSchema[i].colId != columnIndex.columnIndex ? pSchema[i].bytes : pItem->bytes;
|
||||||
}
|
}
|
||||||
if (nLen >= TSDB_MAX_BYTES_PER_ROW) {
|
if (nLen >= TSDB_MAX_TAGS_LEN) {
|
||||||
return invalidOperationMsg(pMsg, msg24);
|
return invalidOperationMsg(pMsg, msg24);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue