Changeset: 565c496e66c0 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=565c496e66c0
Modified Files:
        gdk/gdk_select.c
        sql/test/BugTracker-2015/Tests/All
Branch: Jul2015
Log Message:

fix for bug 3834, ie handle reverse sorted bats in rangejoin


diffs (30 lines):

diff --git a/gdk/gdk_select.c b/gdk/gdk_select.c
--- a/gdk/gdk_select.c
+++ b/gdk/gdk_select.c
@@ -1952,14 +1952,14 @@ rangejoin(BAT *r1, BAT *r2, BAT *l, BAT 
                                high -= BUNfirst(l);
                        } else {
                                if (li)
-                                       low = SORTfndlast(l, vrl);
+                                       low = SORTfndlast(l, vrh);
                                else
-                                       low = SORTfndfirst(l, vrl);
+                                       low = SORTfndfirst(l, vrh);
                                low -= BUNfirst(l);
                                if (hi)
-                                       high = SORTfndfirst(l, vrh);
+                                       high = SORTfndfirst(l, vrl);
                                else
-                                       high = SORTfndlast(l, vrh);
+                                       high = SORTfndlast(l, vrl);
                                high -= BUNfirst(l);
                        }
                        if (high <= low)
diff --git a/sql/test/BugTracker-2015/Tests/All 
b/sql/test/BugTracker-2015/Tests/All
--- a/sql/test/BugTracker-2015/Tests/All
+++ b/sql/test/BugTracker-2015/Tests/All
@@ -78,3 +78,4 @@ uuid-compare.Bug-3827
 select-push-crash.Bug-3829
 coalesce.Bug-3830
 null.Bug-3833
+date_comparison_incorrect_results.Bug-3834
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to