diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2018-11-16 18:11:49 +0000 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2018-11-16 18:16:03 +0000 |
commit | 73a680f45da11f3e839e52d7b94ba010cd1695ec (patch) | |
tree | e96dc038e8c8b521954ba32ac0f3a027be80954b /NEWS | |
parent | 654be4784cebb849bb2f8cd80b366bac1934e827 (diff) | |
download | psycopg2-73a680f45da11f3e839e52d7b94ba010cd1695ec.tar.gz |
Convert int subclasses to long before adapting
Fixes adaptation of int/long subclasses whose str() is not the number,
such IntEnum
Close #591
Note that I thought it would have needed a new adapter, so I considered
it a new feature. But it is more a shortcoming of the int adapter
failing to do something reasonable (poor Liskov, always mistreated) so I
may actually backport it if there is a new 2.7 release.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -18,6 +18,7 @@ New features: structure (:ticket:`#782`). - `~psycopg2.sql.Identifier` can represent qualified names in SQL composition (:ticket:`#732`). +- Fixed adaptation of numeric subclasses such as `IntEnum` (:ticket:`591`). - `!str()` on `~psycopg2.extras.Range` produces a human-readable representation (:ticket:`#773`). - `~psycopg2.extras.DictCursor` and `~psycopg2.extras.RealDictCursor` rows |