From dddfe5c144a674b66dce6c06fbf02630d4676080 Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Fri, 13 May 2022 20:26:12 +0800 Subject: [PATCH] enh: enable limit in shell --- tools/shell/src/shellEngine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/shell/src/shellEngine.c b/tools/shell/src/shellEngine.c index 8f0d39377e..8b126cf90e 100644 --- a/tools/shell/src/shellEngine.c +++ b/tools/shell/src/shellEngine.c @@ -509,7 +509,7 @@ void shellPrintField(const char *val, TAOS_FIELD *field, int32_t width, int32_t bool shellIsLimitQuery(const char *sql) { //todo refactor - if (strstr(sql, "limit") != NULL || strstr(sql, "LIMIT") != NULL) { + if (strcasestr(sql, " limit ") != NULL) { return true; }