Changeset: 318d7846e9fe for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/318d7846e9fe
Modified Files:
        geom/monetdb5/geomBulk.c
Branch: Jul2021
Log Message:

Initialize in time.


diffs (19 lines):

diff --git a/geom/monetdb5/geomBulk.c b/geom/monetdb5/geomBulk.c
--- a/geom/monetdb5/geomBulk.c
+++ b/geom/monetdb5/geomBulk.c
@@ -28,6 +28,7 @@ geom_2_geom_bat(bat *outBAT_id, bat *inB
        bool nils = false;
        wkb *inWKB = NULL, *outWKB = NULL;
 
+       bi = bat_iterator(b);
        //get the descriptor of the BAT
        if ((b = BATdescriptor(*inBAT_id)) == NULL) {
                msg = createException(MAL, "batcalc.wkb", SQLSTATE(HY005) 
RUNTIME_OBJECT_MISSING);
@@ -39,7 +40,6 @@ geom_2_geom_bat(bat *outBAT_id, bat *inB
        }
        off = b->hseqbase;
        q = canditer_init(&ci, b, s);
-       bi = bat_iterator(b);
        //create a new BAT, aligned with input BAT
        if (!(dst = COLnew(ci.hseq, ATOMindex("wkb"), q, TRANSIENT))) {
                msg = createException(MAL, "batcalc.wkb", SQLSTATE(HY013) 
MAL_MALLOC_FAIL);
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to