Fixed OperationalError in connection objects.

This commit is contained in:
Federico Di Gregorio 2006-09-01 11:55:27 +00:00
parent 6ddfde4543
commit b3fdd80452
2 changed files with 5 additions and 0 deletions

View File

@ -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.

View File

@ -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 *