Changeset: 6c8db7945533 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=6c8db7945533
Modified Files:
        sql/backends/monet5/sql_cast.c
Branch: Oct2020
Log Message:

Set correct hseqbase.


diffs (30 lines):

diff --git a/sql/backends/monet5/sql_cast.c b/sql/backends/monet5/sql_cast.c
--- a/sql/backends/monet5/sql_cast.c
+++ b/sql/backends/monet5/sql_cast.c
@@ -29,7 +29,7 @@ str_2_blob(blob **res, const str *val)
 {
        size_t rlen = 0;
        str msg;
-       
+
        *res = NULL;
        if ((msg = str_2_blob_imp(res, &rlen, *val))) {
                GDKfree(*res);
@@ -61,7 +61,7 @@ batstr_2_blob_cand(bat *res, const bat *
        off = b->hseqbase;
        q = canditer_init(&ci, b, s);
        bi = bat_iterator(b);
-       if (!(dst = COLnew(b->hseqbase, TYPE_blob, q, TRANSIENT))) {
+       if (!(dst = COLnew(ci.hseq, TYPE_blob, q, TRANSIENT))) {
                msg = createException(SQL, "batcalc.str_2_blob", 
SQLSTATE(HY013) MAL_MALLOC_FAIL);
                goto bailout;
        }
@@ -240,7 +240,7 @@ SQLbatstr_cast(Client cntxt, MalBlkPtr m
        off = b->hseqbase;
        q = canditer_init(&ci, b, s);
        bi = bat_iterator(b);
-       if (!(dst = COLnew(b->hseqbase, TYPE_str, q, TRANSIENT))) {
+       if (!(dst = COLnew(ci.hseq, TYPE_str, q, TRANSIENT))) {
                msg = createException(SQL, "batcalc.str_cast", SQLSTATE(HY013) 
MAL_MALLOC_FAIL);
                goto bailout;
        }
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to