This commit is contained in:
slguan 2019-09-17 13:48:18 +08:00
parent d28ee044d1
commit ec4c26f774
1 changed files with 8 additions and 2 deletions

View File

@ -3197,8 +3197,14 @@ int32_t buildQueryCond(SSqlObj* pSql, tSQLExpr* pExpr) {
}
int32_t getTimeRange(int64_t* stime, int64_t* etime, tSQLExpr* pRight, int32_t optr, int16_t timePrecision) {
assert(pRight->nSQLOptr == TK_INTEGER || pRight->nSQLOptr == TK_FLOAT || pRight->nSQLOptr == TK_STRING ||
pRight->nSQLOptr == TK_TIMESTAMP);
/*
* filter primary ts filter expression like:
* "where ts in ('2015-12-12 4:8:12')"
* is not supported.
*/
if (pRight->nSQLOptr == TK_SET || optr == TK_IN) {
return TSDB_CODE_INVALID_SQL;
}
int64_t val = 0;
bool parsed = false;