summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2018-11-16 18:11:49 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2018-11-16 18:16:03 +0000
commit73a680f45da11f3e839e52d7b94ba010cd1695ec (patch)
treee96dc038e8c8b521954ba32ac0f3a027be80954b /NEWS
parent654be4784cebb849bb2f8cd80b366bac1934e827 (diff)
downloadpsycopg2-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--NEWS1
1 files changed, 1 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 9047766..3f7b608 100644
--- a/NEWS
+++ b/NEWS
@@ -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