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

fixed bug ie wrong type, var size atoms need extra deref


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
@@ -573,6 +573,8 @@ DICTselect(Client cntxt, MalBlkPtr mb, M
        if (!is_bat_nil(LC))
                lc = BATdescriptor(LC);
        if (op[0] == '=' || ((op[0] == '<' || op[0] == '>') && lv->tsorted)) {
+               if (ATOMvarsized(lv->ttype))
+                       v = *(ptr*)v;
                if (op[0] == '=')
                        p =  BUNfnd(lv, v);
                else if (op[0] == '<')
@@ -581,7 +583,7 @@ DICTselect(Client cntxt, MalBlkPtr mb, M
                        p = SORTfndfirst(lv, v);
                if (p != BUN_NONE) {
                        if (lo->ttype == TYPE_bte) {
-                               sht val = p;
+                               bte val = p;
                                bn =  BATthetaselect(lo, lc, &val, op);
                        } else if (lo->ttype == TYPE_sht) {
                                sht val = p;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to