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

Work around changed Python interface.


diffs (21 lines):

diff --git a/sql/backends/monet5/UDF/pyapi/pyapi.c 
b/sql/backends/monet5/UDF/pyapi/pyapi.c
--- a/sql/backends/monet5/UDF/pyapi/pyapi.c
+++ b/sql/backends/monet5/UDF/pyapi/pyapi.c
@@ -965,7 +965,7 @@ static str PyAPIeval(Client cntxt, MalBl
 #ifndef IS_PY3K
                                        retnames[i] = ((PyStringObject 
*)colname)->ob_sval;
 #else
-                                       retnames[i] = PyUnicode_AsUTF8(colname);
+                                       retnames[i] = (char *) 
PyUnicode_AsUTF8(colname);
 #endif
                                }
                        }
@@ -1369,7 +1369,7 @@ char *PyError_CreateException(char *erro
 {
        PyObject *py_error_type = NULL, *py_error_value = NULL,
                         *py_error_traceback = NULL;
-       char *py_error_string = NULL;
+       const char *py_error_string = NULL;
        lng line_number = -1;
 
        PyErr_Fetch(&py_error_type, &py_error_value, &py_error_traceback);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to