From a3cdee6c5fd1cbf1833bbe7fa10764b905f00107 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Tue, 31 Aug 2010 23:26:33 +0000 Subject: Fix order of joined elements in "exists" clause. --- src/main/java/com/amazon/carbonado/repo/jdbc/WhereBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/com') diff --git a/src/main/java/com/amazon/carbonado/repo/jdbc/WhereBuilder.java b/src/main/java/com/amazon/carbonado/repo/jdbc/WhereBuilder.java index 0b4e409..4a04021 100644 --- a/src/main/java/com/amazon/carbonado/repo/jdbc/WhereBuilder.java +++ b/src/main/java/com/amazon/carbonado/repo/jdbc/WhereBuilder.java @@ -274,11 +274,11 @@ class WhereBuilder extends Visitor 0) { mStatementBuilder.append(" AND "); } - mStatementBuilder.append(oneToManyNode.getAlias()); + mStatementBuilder.append(alias); mStatementBuilder.append('.'); mStatementBuilder.append(oneToMany.getInternalJoinElement(i).getColumnName()); mStatementBuilder.append('='); - mStatementBuilder.append(alias); + mStatementBuilder.append(oneToManyNode.getAlias()); mStatementBuilder.append('.'); mStatementBuilder.append(oneToMany.getExternalJoinElement(i).getColumnName()); } -- cgit v1.2.3