Skip to content

Conversation

jeffgbutler
Copy link
Member

When there is a sub query in a where clause (either with an exists clause or a sub query to column condition) it is very common to reference columns in the "outer" query. With this change, if the outer table has an alias, then the alias will automatically be applied to columns in the sub query. This makes it possible to reference outer query columns without having to re specify and alias.

Resolves #437

@jeffgbutler jeffgbutler added this to the 1.4.0 milestone Mar 2, 2022
@coveralls
Copy link

coveralls commented Mar 2, 2022

Coverage Status

Coverage remained the same at 100.0% when pulling 25af53f on jeffgbutler:gh-437 into 440be15 on mybatis:master.

@jeffgbutler jeffgbutler merged commit 7e90820 into mybatis:master Mar 2, 2022
@jeffgbutler jeffgbutler deleted the gh-437 branch March 2, 2022 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Table Aliases Should Be Visible to Nested Exists Queries
2 participants