From bb8e49ab46889945cc13f57703efeed04f9980a4 Mon Sep 17 00:00:00 2001 From: wpan Date: Fri, 17 Sep 2021 17:35:41 +0800 Subject: [PATCH] fix bug --- src/client/src/tscSQLParser.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index f244e01a09..5b239d3bfb 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -4663,6 +4663,9 @@ int32_t getQueryCondExpr(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, tSqlExpr** pExpr } *type = rightType; + + *tbIdx = (leftTbIdx == rightTbIdx) ? leftTbIdx : -1; + return TSDB_CODE_SUCCESS; } -- GitLab