Added test for issue #788

This commit is contained in:
Federico Di Gregorio 2018-10-10 09:14:56 +02:00
parent 7806fc736a
commit ebcfbe03f9

View File

@ -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, '{}')