mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 17:06:33 +03:00
Fixed OperationalError in connection objects.
This commit is contained in:
parent
6ddfde4543
commit
b3fdd80452
|
@ -2,6 +2,9 @@
|
|||
|
||||
* Preparing release 2.0.5.
|
||||
|
||||
* psycopg/psycopgmodule.c: fixed filling of connection errors
|
||||
to include OperationalError.
|
||||
|
||||
* setup.py: removed pydatetime option from initialize_options
|
||||
to make sure that the value in setup.cfg is used.
|
||||
|
||||
|
|
|
@ -118,6 +118,8 @@ _psyco_connect_fill_exc(connectionObject *conn)
|
|||
Py_INCREF(DataError);
|
||||
conn->exc_NotSupportedError = NotSupportedError;
|
||||
Py_INCREF(NotSupportedError);
|
||||
conn->exc_OperationalError = OperationalError;
|
||||
Py_INCREF(OperationalError);
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
|
|
Loading…
Reference in New Issue
Block a user