MXS-1307 Catch "union all" selects

This commit is contained in:
Johan Wikman
2017-08-10 14:40:55 +03:00
parent 05bbd9676b
commit 4eeff705ee
4 changed files with 20 additions and 6 deletions

View File

@ -3551,7 +3551,7 @@ static void update_field_infos_from_select(QcSqliteInfo* pInfo,
update_field_infos_from_with(pInfo, &aliases, pSelect->pWith);
}
if ((pSelect->op == TK_UNION) && pSelect->pPrior)
if (((pSelect->op == TK_UNION) || (pSelect->op == TK_ALL)) && pSelect->pPrior)
{
update_field_infos_from_subselect(pInfo, &aliases, pSelect->pPrior, usage, pExclude);
}