diff options
Diffstat (limited to 'src/main/java/com/amazon/carbonado')
-rw-r--r-- | src/main/java/com/amazon/carbonado/repo/jdbc/WhereBuilder.java | 4 |
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());
}
|