mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 21:00:33 +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")
|
curs.execute("select col from array_test where id = 2")
|
||||||
self.assertEqual(curs.fetchone()[0], [])
|
self.assertEqual(curs.fetchone()[0], [])
|
||||||
|
|
||||||
|
# issue #788
|
||||||
|
curs.execute("select null = any(%s)", ([[]], ))
|
||||||
|
self.assertEqual(curs.fetchone(), None)
|
||||||
|
|
||||||
def testEmptyArrayNoCast(self):
|
def testEmptyArrayNoCast(self):
|
||||||
s = self.execute("SELECT '{}' AS foo")
|
s = self.execute("SELECT '{}' AS foo")
|
||||||
self.assertEqual(s, '{}')
|
self.assertEqual(s, '{}')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user