mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 17:34:08 +03:00
Added test for issue #788
This commit is contained in:
parent
7806fc736a
commit
ebcfbe03f9
|
@ -167,6 +167,10 @@ class TypesBasicTests(ConnectingTestCase):
|
|||
curs.execute("select col from array_test where id = 2")
|
||||
self.assertEqual(curs.fetchone()[0], [])
|
||||
|
||||
# issue #788
|
||||
curs.execute("select null = any(%s)", ([[]], ))
|
||||
self.assertEqual(curs.fetchone(), None)
|
||||
|
||||
def testEmptyArrayNoCast(self):
|
||||
s = self.execute("SELECT '{}' AS foo")
|
||||
self.assertEqual(s, '{}')
|
||||
|
|
Loading…
Reference in New Issue
Block a user