Skip to content

Commit

Permalink
Invalid symbol fix.
Browse files Browse the repository at this point in the history
Fixes #63
  • Loading branch information
coleifer committed Sep 15, 2023
1 parent 9c3777d commit 124d250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@ static void _trace_callback(void* user_arg, const char* statement_string)
PyObject *ret = NULL;

PyGILState_STATE gilstate = PyGILState_Ensure();
py_statement = PyUnicode_FromSTring(statement_string);
py_statement = PyUnicode_FromString(statement_string);
if (py_statement) {
ret = PyObject_CallFunctionObjArgs((PyObject*)user_arg, py_statement, NULL);
Py_DECREF(py_statement);
Expand Down

0 comments on commit 124d250

Please sign in to comment.