diff options
Diffstat (limited to 'test/sql/test_compiler.py')
-rw-r--r-- | test/sql/test_compiler.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/sql/test_compiler.py b/test/sql/test_compiler.py index 8b19b8931..05893d748 100644 --- a/test/sql/test_compiler.py +++ b/test/sql/test_compiler.py @@ -2174,6 +2174,18 @@ class SelectTest(fixtures.TestBase, AssertsCompiledSQL): "myothertable.otherid, myothertable.othername FROM myothertable)" ) + def test_expanding_parameter(self): + self.assert_compile( + tuple_(table1.c.myid, table1.c.name).in_( + bindparam('foo', expanding=True)), + "(mytable.myid, mytable.name) IN ([EXPANDING_foo])" + ) + + self.assert_compile( + table1.c.myid.in_(bindparam('foo', expanding=True)), + "mytable.myid IN ([EXPANDING_foo])" + ) + def test_cast(self): tbl = table('casttest', column('id', Integer), |