diff --git a/tests/test_types_basic.py b/tests/test_types_basic.py index 76b9aa3f..5d89a167 100755 --- a/tests/test_types_basic.py +++ b/tests/test_types_basic.py @@ -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, '{}')