mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 17:34:08 +03:00
Use NULL instead of an empty string as PyObject_CallMethod format
This commit is contained in:
parent
884a7f7db6
commit
b214d10fff
|
@ -417,11 +417,11 @@ psyco_conn_exit(connectionObject *self, PyObject *args)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type == Py_None) {
|
if (type == Py_None) {
|
||||||
if (!(tmp = PyObject_CallMethod((PyObject *)self, "commit", ""))) {
|
if (!(tmp = PyObject_CallMethod((PyObject *)self, "commit", NULL))) {
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!(tmp = PyObject_CallMethod((PyObject *)self, "rollback", ""))) {
|
if (!(tmp = PyObject_CallMethod((PyObject *)self, "rollback", NULL))) {
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user