提交 4adcc7fc 编写于 作者: wmmhello's avatar wmmhello

TD-6129<feature> add tag-> select logic

上级 abc4c1c6
...@@ -715,7 +715,7 @@ void tSetColumnType(TAOS_FIELD *pField, SStrToken *type) { ...@@ -715,7 +715,7 @@ void tSetColumnType(TAOS_FIELD *pField, SStrToken *type) {
pField->type = i; pField->type = i;
pField->bytes = tDataTypes[i].bytes; pField->bytes = tDataTypes[i].bytes;
if (i == TSDB_DATA_TYPE_NCHAR || (i == TSDB_DATA_TYPE_JSON && JSON_TYPE_NCHAR) { if (i == TSDB_DATA_TYPE_NCHAR || (i == TSDB_DATA_TYPE_JSON && JSON_TYPE_NCHAR)) {
/* /*
* for nchar, the TOKENTYPE is the number of character, so the length is the * for nchar, the TOKENTYPE is the number of character, so the length is the
* number of bytes in UCS-4 format, which is 4 times larger than the number of characters * number of bytes in UCS-4 format, which is 4 times larger than the number of characters
...@@ -732,7 +732,7 @@ void tSetColumnType(TAOS_FIELD *pField, SStrToken *type) { ...@@ -732,7 +732,7 @@ void tSetColumnType(TAOS_FIELD *pField, SStrToken *type) {
} }
pField->bytes = (int16_t)bytes; pField->bytes = (int16_t)bytes;
} }
} else if (i == TSDB_DATA_TYPE_BINARY || (i == TSDB_DATA_TYPE_JSON && JSON_TYPE_BINARY) { } else if (i == TSDB_DATA_TYPE_BINARY || (i == TSDB_DATA_TYPE_JSON && JSON_TYPE_BINARY)) {
/* for binary, the TOKENTYPE is the length of binary */ /* for binary, the TOKENTYPE is the length of binary */
if (type->type == 0) { if (type->type == 0) {
pField->bytes = 0; pField->bytes = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册