From 7e9f4247fb1fb6ac84329cf75ff2c2733526b4ab Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Thu, 16 Sep 2021 17:47:07 +0800 Subject: [PATCH] TD-6129 add json tag support --- src/client/src/tscSQLParser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index a2e8947de1..433a13cee6 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -1591,7 +1591,7 @@ int32_t validateOneTag(SSqlCmd* pCmd, TAOS_FIELD* pTagField) { // return false; //} if (pTagField->type == TSDB_DATA_TYPE_JSON) { - return invalidOperationMsg(tscGetErrorMsgPayload(pCmd), msg6); + return invalidOperationMsg(tscGetErrorMsgPayload(pCmd), msg8); } if ((pTagField->type < TSDB_DATA_TYPE_BOOL) || (pTagField->type > TSDB_DATA_TYPE_UBIGINT)) { @@ -1602,7 +1602,7 @@ int32_t validateOneTag(SSqlCmd* pCmd, TAOS_FIELD* pTagField) { int32_t nLen = 0; if (numOfTags == 1 && pTagSchema[0].type == TSDB_DATA_TYPE_JSON){ - return invalidOperationMsg(tscGetErrorMsgPayload(pCmd), msg6); + return invalidOperationMsg(tscGetErrorMsgPayload(pCmd), msg8); } for (int32_t i = 0; i < numOfTags; ++i) { -- GitLab