summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2010-08-31 23:26:33 +0000
committerBrian S. O'Neill <bronee@gmail.com>2010-08-31 23:26:33 +0000
commita3cdee6c5fd1cbf1833bbe7fa10764b905f00107 (patch)
tree3155dff05b08331823a62bd3d41075d1ca0fa160 /src/main/java/com/amazon
parentcda2eb5a2004d0ca3f71eee96cca37e384a85168 (diff)
Fix order of joined elements in "exists" clause.
Diffstat (limited to 'src/main/java/com/amazon')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/jdbc/WhereBuilder.java4
1 files changed, 2 insertions, 2 deletions
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<S extends Storable> extends Visitor<S, FetchException, Object
if (i > 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());
}