mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 00:46:33 +03:00
[test_basic_types] Add test for array[%s] on NULL arrays
Add test to verifity the fix for #1507.
This commit is contained in:
parent
a12dbc4357
commit
4912be0e7f
|
@ -272,6 +272,8 @@ class TypesBasicTests(ConnectingTestCase):
|
||||||
]:
|
]:
|
||||||
curs.execute("select %s::int[]", (a,))
|
curs.execute("select %s::int[]", (a,))
|
||||||
self.assertEqual(curs.fetchone()[0], a)
|
self.assertEqual(curs.fetchone()[0], a)
|
||||||
|
curs.execute("select array[%s::int[]]", (a,))
|
||||||
|
self.assertEqual(curs.fetchone()[0], [a])
|
||||||
|
|
||||||
def testTypeRoundtripBytes(self):
|
def testTypeRoundtripBytes(self):
|
||||||
o1 = bytes(range(256))
|
o1 = bytes(range(256))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user