未验证 提交 92c0200e 编写于 作者: M Minglei Jin 提交者: GitHub

Merge pull request #11012 from taosdata/fix/TS-1366-d

[TS-1366]<fix>: fix unsigned bug with show create table
......@@ -240,6 +240,18 @@ static int32_t tscGetNthFieldResult(TAOS_ROW row, TAOS_FIELD* fields, int *lengt
case TSDB_DATA_TYPE_BIGINT:
sprintf(result, "%"PRId64, *((int64_t *)val));
break;
case TSDB_DATA_TYPE_UTINYINT:
sprintf(result, "%u", *((uint8_t *)val));
break;
case TSDB_DATA_TYPE_USMALLINT:
sprintf(result, "%u", *((uint16_t *)val));
break;
case TSDB_DATA_TYPE_UINT:
sprintf(result, "%u", *((uint32_t *)val));
break;
case TSDB_DATA_TYPE_UBIGINT:
sprintf(result, "%"PRIu64, *((uint64_t *)val));
break;
case TSDB_DATA_TYPE_FLOAT:
sprintf(result, "%f", GET_FLOAT_VAL(val));
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册