Merge pull request #10885 from taosdata/feature/3.0_wxy

TD-14045 bugfix
This commit is contained in:
Xiaoyu Wang 2022-03-22 10:58:11 +08:00 committed by GitHub
commit 53ddf7e185
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}