enh: enable limit in shell

This commit is contained in:
Shengliang Guan 2022-05-13 20:26:12 +08:00
parent 8873e392fb
commit dddfe5c144
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;
}