Changeset: 549c16611d1f for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=549c16611d1f
Modified Files:
        sql/backends/monet5/UDF/pyapi/emit.c
Branch: Jul2017
Log Message:

Python does its own format string interpretation.


diffs (16 lines):

diff --git a/sql/backends/monet5/UDF/pyapi/emit.c 
b/sql/backends/monet5/UDF/pyapi/emit.c
--- a/sql/backends/monet5/UDF/pyapi/emit.c
+++ b/sql/backends/monet5/UDF/pyapi/emit.c
@@ -66,9 +66,10 @@ PyObject *PyEmit_Emit(PyEmitObject *self
                        if (el_count < 0) {
                                el_count = this_size;
                        } else if (el_count != this_size) {
+                               /* don't use SZFMT since format given to Python 
*/
                                PyErr_Format(
-                                       PyExc_TypeError, "Element %s has size " 
SZFMT ", but expected an "
-                                                                        
"element with size " SZFMT,
+                                       PyExc_TypeError, "Element %s has size 
%zu, but expected an "
+                                                                        
"element with size %zu",
                                        PyString_AsString(PyObject_Str(key)), 
this_size, el_count);
                                Py_DECREF(items);
                                return NULL;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to