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

small bug fix in range selects


diffs (21 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
@@ -601,12 +601,13 @@ DICTselect(Client cntxt, MalBlkPtr mb, M
        if (op[0] == '=' || ((op[0] == '<' || op[0] == '>') && lv->tsorted)) {
                if (ATOMvarsized(lv->ttype))
                        v = *(ptr*)v;
-               if (op[0] == '=')
+               if (op[0] == '=') {
                        p =  BUNfnd(lv, v);
-               else if (op[0] == '<')
+               } else if (op[0] == '<') {
+                       p = SORTfndfirst(lv, v);
+               } else if (op[0] == '>') {
                        p = SORTfndlast(lv, v);
-               else if (op[0] == '>')
-                       p = SORTfndfirst(lv, v);
+               }
                if (p != BUN_NONE) {
                        if (lo->ttype == TYPE_bte) {
                                bte val = p;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to