MXS-3535 Collect information from ON clause
In the case of qc_sqlite, it is done "precisely", while in the case of qc_mysqlembedded rather bluntly. Not time well spent to figure out exactly which pointer chains need to be walked.
This commit is contained in:
@ -1303,6 +1303,11 @@ public:
|
||||
pExclude);
|
||||
}
|
||||
|
||||
if (pSrc->a[i].pOn)
|
||||
{
|
||||
update_field_infos(&aliases, context, 0, pSrc->a[i].pOn, QC_TOKEN_MIDDLE, pExclude);
|
||||
}
|
||||
|
||||
#ifdef QC_COLLECT_NAMES_FROM_USING
|
||||
// With this enabled, the affected fields of
|
||||
// select * from (t1 as t2 left join t1 as t3 using (a)), t1;
|
||||
@ -1436,6 +1441,11 @@ public:
|
||||
{
|
||||
update_names_from_srclist(pAliases, pSrc->a[i].pSelect->pSrc);
|
||||
}
|
||||
|
||||
if (pSrc->a[i].pOn)
|
||||
{
|
||||
update_field_infos(pAliases, 0, 0, pSrc->a[i].pOn, QC_TOKEN_MIDDLE, NULL);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user