TD-14045 bugfix

This commit is contained in:
Xiaoyu Wang 2022-03-21 22:42:01 -04:00
parent 48614d2cb0
commit 0025aed0d5
1 changed files with 1 additions and 1 deletions

View File

@ -892,7 +892,7 @@ SDataType createDataType(uint8_t type) {
}
SDataType createVarLenDataType(uint8_t type, const SToken* pLen) {
SDataType dt = { .type = type, .precision = 0, .scale = 0, .bytes = tDataTypes[type].bytes };
SDataType dt = { .type = type, .precision = 0, .scale = 0, .bytes = strtol(pLen->z, NULL, 10) };
return dt;
}