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