diff options
| author | Diana Clarke <diana.joan.clarke@gmail.com> | 2013-03-30 09:30:58 -0400 |
|---|---|---|
| committer | Diana Clarke <diana.joan.clarke@gmail.com> | 2013-03-30 09:30:58 -0400 |
| commit | 25c6732019550e6f26ae4da58084b939e04cffa1 (patch) | |
| tree | 32a319d13f22ece65148f2208d589cfc04fc6091 /test/sql/test_compiler.py | |
| parent | 2fa9dd6bb878573c970aeadad978a19053e550d1 (diff) | |
| download | sqlalchemy-25c6732019550e6f26ae4da58084b939e04cffa1.tar.gz | |
moving insert returning test back into CRUD test class until I figure out why moving it broke the oracle/postgres builds
Diffstat (limited to 'test/sql/test_compiler.py')
| -rw-r--r-- | test/sql/test_compiler.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/sql/test_compiler.py b/test/sql/test_compiler.py index 886f3895b..c3638f52f 100644 --- a/test/sql/test_compiler.py +++ b/test/sql/test_compiler.py @@ -2460,6 +2460,11 @@ class KwargPropagationTest(fixtures.TestBase): class CRUDTest(fixtures.TestBase, AssertsCompiledSQL): __dialect__ = 'default' + def test_insert_returning_not_in_default(self): + stmt = table1.insert().returning(table1.c.myid) + m = "RETURNING is not supported by this dialect's statement compiler." + assert_raises_message(exc.CompileError, m, stmt.compile) + def test_correlated_update(self): # test against a straight text subquery u = update(table1, values={ |
