From a8e3ebeece7c811b156b47aa789527bf5bb55b56 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Sat, 13 Dec 2008 04:21:03 +0000 Subject: Allow 'dot' syntax for property chains against one-to-many joins. --- src/main/java/com/amazon/carbonado/qe/FilteringScore.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/java/com/amazon/carbonado/qe') diff --git a/src/main/java/com/amazon/carbonado/qe/FilteringScore.java b/src/main/java/com/amazon/carbonado/qe/FilteringScore.java index 6fa6ca0..b1709c9 100644 --- a/src/main/java/com/amazon/carbonado/qe/FilteringScore.java +++ b/src/main/java/com/amazon/carbonado/qe/FilteringScore.java @@ -767,7 +767,7 @@ public class FilteringScore { } private boolean isProvidedByIndex(Filter filter) { - return filter.accept(new Visitor() { + Boolean result = filter.accept(new Visitor() { @Override public Boolean visit(OrFilter filter, Object param) { return filter.getLeftFilter().accept(this, param) @@ -791,6 +791,8 @@ public class FilteringScore { return false; } }, null); + + return result == null ? false : result; } private static class Range implements Comparator> { -- cgit v1.2.3