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

no need to access a bat which isn't used..


diffs (25 lines):

diff --git a/sql/backends/monet5/sql.c b/sql/backends/monet5/sql.c
--- a/sql/backends/monet5/sql.c
+++ b/sql/backends/monet5/sql.c
@@ -1342,13 +1342,6 @@ mvc_bind_wrap(Client cntxt, MalBlkPtr mb
                        } else {
                                /* BAT b holds the UPD_ID bat */
                                oid l, h;
-                               BAT *s = mvc_bind(m, sname, tname, cname, 0);
-                               if (s == NULL) {
-                                       BBPunfix(b->batCacheid);
-                                       throw(SQL,"sql.bind",SQLSTATE(HY005) 
"Cannot access the update column %s.%s.%s",
-                                             sname,tname,cname);
-                               }
-                               cnt = BATcount(s);
                                cnt = 
store->storage_api.count_col(m->session->tr, c, 0);
                                psz = cnt ? (cnt / nr_parts) : 0;
                                l = part_nr * psz;
@@ -1359,7 +1352,6 @@ mvc_bind_wrap(Client cntxt, MalBlkPtr mb
                                        h = cnt;
                                h--;
                                bn = BATselect(b, NULL, &l, &h, true, true, 
false);
-                               BBPunfix(s->batCacheid);
                                if(bn == NULL) {
                                        BBPunfix(b->batCacheid);
                                        throw(SQL, "sql.bind", GDK_EXCEPTION);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to