fix null issue

This commit is contained in:
dapan1121 2022-05-28 13:38:58 +08:00
parent 996a041cb2
commit 73de545f21
1 changed files with 2 additions and 0 deletions

View File

@ -587,6 +587,8 @@ int32_t shellCalcColWidth(TAOS_FIELD *field, int32_t precision) {
int32_t width = (int32_t)strlen(field->name);
switch (field->type) {
case TSDB_DATA_TYPE_NULL:
return TMAX(4, width); // null
case TSDB_DATA_TYPE_BOOL:
return TMAX(5, width); // 'false'