Merge pull request #12444 from taosdata/fix/valgrind

enh: enable limit in shell
This commit is contained in:
Shengliang Guan 2022-05-13 20:41:04 +08:00 committed by GitHub
commit f3d389c11d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}