fix the crash when skey is less than ekey.

This commit is contained in:
hjxilinx 2020-02-29 14:57:08 +08:00
parent 84c1eb3cdd
commit cea31100de
1 changed files with 1 additions and 1 deletions

View File

@ -5717,7 +5717,7 @@ int32_t doCheckForQuery(SSqlObj* pSql, SQuerySQL* pQuerySql, int32_t index) {
// no result due to invalid query time range
if (pQueryInfo->stime > pQueryInfo->etime) {
pCmd->command = TSDB_SQL_RETRIEVE_EMPTY_RESULT;
pQueryInfo->command = TSDB_SQL_RETRIEVE_EMPTY_RESULT;
return TSDB_CODE_SUCCESS;
}