diff --git a/NEWS b/NEWS index 133c3e6e..08d377cb 100644 --- a/NEWS +++ b/NEWS @@ -22,6 +22,7 @@ What's new in psycopg 2.4 missing encodings: EUC_CN, EUC_JIS_2004, ISO885910, ISO885916, LATIN10, SHIFT_JIS_2004. - Dropped repeated dictionary lookups with unicode query/parameters. + - Empty lists correctly roundtrip Python -> PostgreSQL -> Python. * Bug fixes: diff --git a/tests/types_basic.py b/tests/types_basic.py index 56be342f..97397794 100755 --- a/tests/types_basic.py +++ b/tests/types_basic.py @@ -185,6 +185,9 @@ class TypesBasicTests(unittest.TestCase): self.failUnlessEqual(s, []) s = self.execute("SELECT 1 != ALL(%s)", ([],)) self.failUnlessEqual(s, True) + # but don't break the strings :) + s = self.execute("SELECT '{}'::text AS foo") + self.failUnlessEqual(s, "{}") @testutils.skip_from_python(3) def testTypeRoundtripBuffer(self):