summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-04-24 16:27:58 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-04-24 16:27:58 -0400
commita55d6c5f35769ea61ea5240aff9f763229d3007e (patch)
treef2e39a1d1e583a9b393fc4910f23937749ceb2ee /test
parent1fe06a551c28a6e0886f96334deebdee68d9fff9 (diff)
downloadsqlalchemy-a55d6c5f35769ea61ea5240aff9f763229d3007e.tar.gz
- [feature] The "unconsumed column names" warning emitted
when keys are present in insert.values() or update.values() that aren't in the target table is now an exception. [ticket:2415]
Diffstat (limited to 'test')
-rw-r--r--test/sql/test_compiler.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/sql/test_compiler.py b/test/sql/test_compiler.py
index d5d5eaa2d..dfdf8bd87 100644
--- a/test/sql/test_compiler.py
+++ b/test/sql/test_compiler.py
@@ -3020,18 +3020,18 @@ class CRUDTest(fixtures.TestBase, AssertsCompiledSQL):
t = table("t", column("x"), column("y"))
t2 = table("t2", column("q"), column("z"))
assert_raises_message(
- exc.SAWarning,
+ exc.CompileError,
"Unconsumed column names: z",
t.insert().values(x=5, z=5).compile,
)
assert_raises_message(
- exc.SAWarning,
+ exc.CompileError,
"Unconsumed column names: z",
t.update().values(x=5, z=5).compile,
)
assert_raises_message(
- exc.SAWarning,
+ exc.CompileError,
"Unconsumed column names: j",
t.update().values(x=5, j=7).values({t2.c.z:5}).
where(t.c.x==t2.c.q).compile,
@@ -3053,7 +3053,7 @@ class CRUDTest(fixtures.TestBase, AssertsCompiledSQL):
)
assert_raises_message(
- exc.SAWarning,
+ exc.CompileError,
"Unconsumed column names: j",
t.update().values(x=5, j=7).compile,
column_keys=['j']