diff options
author | Ion Alberdi <ion.alberdi@pricemoov.com> | 2022-10-10 21:10:45 +0200 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2022-10-11 13:02:22 +0100 |
commit | 4912be0e7f527e2a025067e16bd2390b09f71d9c (patch) | |
tree | 0739f837022bda4a253357930bee422c66bbc317 | |
parent | a12dbc435734e592621a760cc32142e77c6e4883 (diff) | |
download | psycopg2-4912be0e7f527e2a025067e16bd2390b09f71d9c.tar.gz |
[test_basic_types] Add test for array[%s] on NULL arrays
Add test to verifity the fix for #1507.
-rwxr-xr-x | tests/test_types_basic.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_types_basic.py b/tests/test_types_basic.py index d21309e..31f0310 100755 --- a/tests/test_types_basic.py +++ b/tests/test_types_basic.py @@ -272,6 +272,8 @@ class TypesBasicTests(ConnectingTestCase): ]: curs.execute("select %s::int[]", (a,)) self.assertEqual(curs.fetchone()[0], a) + curs.execute("select array[%s::int[]]", (a,)) + self.assertEqual(curs.fetchone()[0], [a]) def testTypeRoundtripBytes(self): o1 = bytes(range(256)) |