mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 12:50:32 +03:00
parent
05f23df238
commit
8dff6a38c7
5
NEWS
5
NEWS
|
@ -5,12 +5,13 @@ What's new in psycopg 2.6.2
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
- Report the server response status on errors (such as :ticket:`#281`).
|
- Report the server response status on errors (such as :ticket:`#281`).
|
||||||
|
- Raise `!NotSupportedError` on unhandled server response status
|
||||||
|
(:ticket:`#352`).
|
||||||
- The `~psycopg2.extras.wait_select` callback allows interrupting a
|
- The `~psycopg2.extras.wait_select` callback allows interrupting a
|
||||||
long-running query in an interactive shell using :kbd:`Ctrl-C`
|
long-running query in an interactive shell using :kbd:`Ctrl-C`
|
||||||
(:ticket:`#333`).
|
(:ticket:`#333`).
|
||||||
- Raise `!NotSupportedError` on unhandled server response status
|
|
||||||
(:ticket:`#352`).
|
|
||||||
- Fixed `!PersistentConnectionPool` on Python 3 (:ticket:`#348`).
|
- Fixed `!PersistentConnectionPool` on Python 3 (:ticket:`#348`).
|
||||||
|
- Fixed segfault on `repr()` of an unitialized connection (:ticket:`#361`).
|
||||||
- Added support for setuptools/wheel (:ticket:`#370`).
|
- Added support for setuptools/wheel (:ticket:`#370`).
|
||||||
- Fix build on Windows with Python 3.5, VS 2015 (:ticket:`#380`).
|
- Fix build on Windows with Python 3.5, VS 2015 (:ticket:`#380`).
|
||||||
- Fixed `!errorcodes.lookup` initialization thread-safety (:ticket:`#382`).
|
- Fixed `!errorcodes.lookup` initialization thread-safety (:ticket:`#382`).
|
||||||
|
|
|
@ -1172,7 +1172,7 @@ connection_repr(connectionObject *self)
|
||||||
{
|
{
|
||||||
return PyString_FromFormat(
|
return PyString_FromFormat(
|
||||||
"<connection object at %p; dsn: '%s', closed: %ld>",
|
"<connection object at %p; dsn: '%s', closed: %ld>",
|
||||||
self, self->dsn, self->closed);
|
self, (self->dsn ? self->dsn : "<unintialized>"), self->closed);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Reference in New Issue
Block a user