mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-23 01:16:34 +03:00
parent
a09efaf5a1
commit
347a64b979
5
NEWS
5
NEWS
|
@ -5,8 +5,9 @@ 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
|
- Raise `!NotSupportedError` on unhandled server response status
|
||||||
(:ticket:`#352`).
|
(:ticket:`#352`).
|
||||||
|
- Fixed `!PersistentConnectionPool` on Python 3 (:ticket:`#348`).
|
||||||
|
|
||||||
|
|
||||||
What's new in psycopg 2.6.1
|
What's new in psycopg 2.6.1
|
||||||
|
@ -15,7 +16,7 @@ What's new in psycopg 2.6.1
|
||||||
- Lists consisting of only `None` are escaped correctly (:ticket:`#285`).
|
- Lists consisting of only `None` are escaped correctly (:ticket:`#285`).
|
||||||
- Fixed deadlock in multithread programs using OpenSSL (:ticket:`#290`).
|
- Fixed deadlock in multithread programs using OpenSSL (:ticket:`#290`).
|
||||||
- Correctly unlock the connection after error in flush (:ticket:`#294`).
|
- Correctly unlock the connection after error in flush (:ticket:`#294`).
|
||||||
- Fixed ``MinTimeLoggingCursor.callproc()`` (:ticket:`#309`).
|
- Fixed `!MinTimeLoggingCursor.callproc()` (:ticket:`#309`).
|
||||||
- Added support for MSVC 2015 compiler (:ticket:`#350`).
|
- Added support for MSVC 2015 compiler (:ticket:`#350`).
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -204,8 +204,8 @@ class PersistentConnectionPool(AbstractConnectionPool):
|
||||||
|
|
||||||
# we we'll need the thread module, to determine thread ids, so we
|
# we we'll need the thread module, to determine thread ids, so we
|
||||||
# import it here and copy it in an instance variable
|
# import it here and copy it in an instance variable
|
||||||
import thread
|
import thread as _thread # work around for 2to3 bug - see ticket #348
|
||||||
self.__thread = thread
|
self.__thread = _thread
|
||||||
|
|
||||||
def getconn(self):
|
def getconn(self):
|
||||||
"""Generate thread id and return a connection."""
|
"""Generate thread id and return a connection."""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user