summaryrefslogtreecommitdiff
path: root/test/dialect/test_postgresql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-04-22 17:24:31 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2013-04-22 17:24:31 -0400
commit63c211f42730011760aa8e3f88b2171b23bc0a60 (patch)
tree60c5cf727f4c9ec1d26822bf8ae5185d71b25979 /test/dialect/test_postgresql.py
parentd2f8c83e25ea7abb49315c30518f6415b497f1a7 (diff)
downloadsqlalchemy-63c211f42730011760aa8e3f88b2171b23bc0a60.tar.gz
tweak this some more to handle the array being empty again
Diffstat (limited to 'test/dialect/test_postgresql.py')
-rw-r--r--test/dialect/test_postgresql.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/dialect/test_postgresql.py b/test/dialect/test_postgresql.py
index 42c8c85c4..e217eb0b8 100644
--- a/test/dialect/test_postgresql.py
+++ b/test/dialect/test_postgresql.py
@@ -2247,6 +2247,17 @@ class ArrayTest(fixtures.TablesTest, AssertsExecutionResults):
7
)
+ def test_undim_array_empty(self):
+ arrtable = self.tables.arrtable
+ self._fixture_456(arrtable)
+ eq_(
+ testing.db.scalar(
+ select([arrtable.c.intarr]).
+ where(arrtable.c.intarr.contains([]))
+ ),
+ [4, 5, 6]
+ )
+
def test_array_getitem_slice_exec(self):
arrtable = self.tables.arrtable
testing.db.execute(