From 2fe296f8f889a24e5359fa6be19b581167b229e0 Mon Sep 17 00:00:00 2001 From: shenglian zhou Date: Tue, 7 Dec 2021 16:26:10 +0800 Subject: [PATCH] change length/char_length return type to int --- src/common/src/texpr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/src/texpr.c b/src/common/src/texpr.c index bac2eb4cdf..edd5199100 100644 --- a/src/common/src/texpr.c +++ b/src/common/src/texpr.c @@ -1034,8 +1034,8 @@ int32_t exprValidateStringLengthNode(tExprNode *pExpr) { return TSDB_CODE_TSC_INVALID_OPERATION; } - pExpr->resultType = TSDB_DATA_TYPE_SMALLINT; - pExpr->resultBytes = tDataTypes[TSDB_DATA_TYPE_SMALLINT].bytes; + pExpr->resultType = TSDB_DATA_TYPE_INT; + pExpr->resultBytes = tDataTypes[TSDB_DATA_TYPE_INT].bytes; return TSDB_CODE_SUCCESS; } -- GitLab