Changeset: 680b494bf8ac for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/680b494bf8ac
Modified Files:
        sql/backends/monet5/dict.c
Branch: default
Log Message:

small fix for the DICTthetajoin, improved fndfirst versions maybe needed.


diffs (15 lines):

diff --git a/sql/backends/monet5/dict.c b/sql/backends/monet5/dict.c
--- a/sql/backends/monet5/dict.c
+++ b/sql/backends/monet5/dict.c
@@ -707,6 +707,11 @@ DICTthetaselect(Client cntxt, MalBlkPtr 
                        p =  BUNfnd(lv, v);
                } else if (op[0] == '<' || op[0] == '>') {
                        p = SORTfndfirst(lv, v);
+                       if (p != BUN_NONE && op[0] == '<' && op[1] == '=') {
+                               BUN q = SORTfnd(lv, v);
+                               if (q == BUN_NONE)
+                                       p--;
+                       }
                }
                if (p != BUN_NONE) {
                        if (lo->ttype == TYPE_bte) {
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to