[TD-2106]<fix>: cannot find table by alias
This commit is contained in:
parent
06d4dd737e
commit
ca1cf67ecd
|
@ -6412,7 +6412,7 @@ int32_t doCheckForQuery(SSqlObj* pSql, SQuerySQL* pQuerySql, int32_t index) {
|
|||
return code;
|
||||
}
|
||||
|
||||
tVariantListItem* p1 = taosArrayGet(pQuerySql->from, i);
|
||||
tVariantListItem* p1 = taosArrayGet(pQuerySql->from, i + 1);
|
||||
if (p1->pVar.nType != TSDB_DATA_TYPE_BINARY) {
|
||||
return invalidSqlErrMsg(tscGetErrorMsgPayload(pCmd), msg11);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue