[TD-225]fix compiler error.

This commit is contained in:
Haojun Liao 2021-01-16 15:30:01 +08:00
parent a34b3d786b
commit d903df8ff8
1 changed files with 1 additions and 1 deletions

View File

@ -839,7 +839,7 @@ int taos_print_row(char *str, TAOS_ROW row, TAOS_FIELD *fields, int num_fields)
case TSDB_DATA_TYPE_BINARY:
case TSDB_DATA_TYPE_NCHAR: {
int32_t charLen = varDataLen(row[i] - VARSTR_HEADER_SIZE);
int32_t charLen = varDataLen((char*)row[i] - VARSTR_HEADER_SIZE);
if (fields[i].type == TSDB_DATA_TYPE_BINARY) {
assert(charLen <= fields[i].bytes);
} else {