mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-10 19:16:34 +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 (!(tmp = PyObject_CallMethod((PyObject *)self, "commit", ""))) {
|
||||
if (!(tmp = PyObject_CallMethod((PyObject *)self, "commit", NULL))) {
|
||||
goto exit;
|
||||
}
|
||||
} else {
|
||||
if (!(tmp = PyObject_CallMethod((PyObject *)self, "rollback", ""))) {
|
||||
if (!(tmp = PyObject_CallMethod((PyObject *)self, "rollback", NULL))) {
|
||||
goto exit;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user