aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/iciql/QueryJoin.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/iciql/QueryJoin.java')
-rw-r--r--src/com/iciql/QueryJoin.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/iciql/QueryJoin.java b/src/com/iciql/QueryJoin.java
index 652d937..6d0484e 100644
--- a/src/com/iciql/QueryJoin.java
+++ b/src/com/iciql/QueryJoin.java
@@ -32,6 +32,7 @@ public class QueryJoin<T> {
}
public QueryJoinCondition<T, Boolean> on(boolean x) {
+ query.getFrom().getAliasDefinition().checkMultipleBooleans();
return addPrimitive(x);
}
@@ -59,7 +60,7 @@ public class QueryJoin<T> {
return addPrimitive(x);
}
- private <A> QueryJoinCondition<T, A> addPrimitive(A x) {
+ private <A> QueryJoinCondition<T, A> addPrimitive(A x) {
A alias = query.getPrimitiveAliasByValue(x);
if (alias == null) {
// this will result in an unmapped field exception