commit
ccd59c87fb
|
@ -1655,7 +1655,7 @@ int32_t addExprAndResultField(SQueryInfo* pQueryInfo, int32_t colIdx, tSQLExprIt
|
|||
SSchema* pSchema = tsGetSchema(pMeterMetaInfo->pMeterMeta);
|
||||
|
||||
// functions can not be applied to tags
|
||||
if (index.columnIndex >= pMeterMetaInfo->pMeterMeta->numOfColumns) {
|
||||
if ((index.columnIndex >= pMeterMetaInfo->pMeterMeta->numOfColumns) || (index.columnIndex < 0)) {
|
||||
return invalidSqlErrMsg(pQueryInfo->msg, msg6);
|
||||
}
|
||||
|
||||
|
@ -5663,4 +5663,4 @@ int32_t doCheckForQuery(SSqlObj* pSql, SQuerySQL* pQuerySql, int32_t index) {
|
|||
bool hasDefaultQueryTimeRange(SQueryInfo *pQueryInfo) {
|
||||
return (pQueryInfo->stime == 0 && pQueryInfo->etime == INT64_MAX) ||
|
||||
(pQueryInfo->stime == INT64_MAX && pQueryInfo->etime == 0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue