solomax commented on code in PR #324:
URL: https://github.com/apache/openjpa/pull/324#discussion_r4682152492
##########
openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SelectImpl.java:
##########
@@ -2265,18 +2265,32 @@ private Integer findAliasForQuery(Table table,
PathJoins pj, Object key,
i = sel.findAlias(table, key); // find in parent and in myself
else
i = sel.getAlias(table, key); // find in myself
+ boolean otherContext = ctx != null && ctx != ctx();
+ if (i == null && otherContext)
Review Comment:
Could you please add curly vrakets? :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]