Changeset: 57124c19e5fc for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=57124c19e5fc
Modified Files:
        monetdb5/extras/pyapi/connection.c
Branch: pythonudf
Log Message:

Always copy the data returned from a loopback query, because the BATs holding 
that data are destroyed after the query is completed.


diffs (12 lines):

diff --git a/monetdb5/extras/pyapi/connection.c 
b/monetdb5/extras/pyapi/connection.c
--- a/monetdb5/extras/pyapi/connection.c
+++ b/monetdb5/extras/pyapi/connection.c
@@ -62,7 +62,7 @@ static PyObject *
                 input.scalar = false;
                 input.sql_subtype = &col.type;
 
-                numpy_array = PyMaskedArray_FromBAT(self->cntxt, &input, 0, 
input.count, &res, false);
+                numpy_array = PyMaskedArray_FromBAT(self->cntxt, &input, 0, 
input.count, &res, true);
                 if (!numpy_array) {
                     _connection_cleanup_result(output);
                     PyErr_Format(PyExc_Exception, "SQL Query Failed: %s", (res 
? res : "<no error>"));
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to