Merge pull request #12444 from taosdata/fix/valgrind
enh: enable limit in shell
This commit is contained in:
commit
f3d389c11d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue