From 63c211f42730011760aa8e3f88b2171b23bc0a60 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 22 Apr 2013 17:24:31 -0400 Subject: tweak this some more to handle the array being empty again --- test/dialect/test_postgresql.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/dialect/test_postgresql.py') 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( -- cgit v1.2.1