Merge pull request #1278 from taosdata/feature/liaohj

fix the crash when skey is less than ekey.
This commit is contained in:
slguan 2020-02-29 15:05:02 +08:00 committed by GitHub
commit 41044ba3d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}