diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-12-16 16:38:06 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-12-16 16:38:06 -0500 |
| commit | e7c78be2e737591d637b6acde6117893fd29dfe0 (patch) | |
| tree | 11abdbd136f0e9cfcf8959a7c41d2d4d0f27772c /test/sql/test_compiler.py | |
| parent | 835bdabd05c83e3add3e876a861aa74105d34397 (diff) | |
| download | sqlalchemy-e7c78be2e737591d637b6acde6117893fd29dfe0.tar.gz | |
Do the CompoundSelect check for number of columns in the compile phase
Starting to go forward with the general idea of moving more
of Core / ORM construction into the compile phase. Bigger
initiatives like the refactor of Query will follow onto this.
Change-Id: I0f364d3182e21e32ed85ef34cfd11fd9d11cf653
Diffstat (limited to 'test/sql/test_compiler.py')
| -rw-r--r-- | test/sql/test_compiler.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/sql/test_compiler.py b/test/sql/test_compiler.py index 486b54682..54c3e2f6e 100644 --- a/test/sql/test_compiler.py +++ b/test/sql/test_compiler.py @@ -1995,13 +1995,11 @@ class SelectTest(fixtures.TestBase, AssertsCompiledSQL): def test_compound_selects(self): assert_raises_message( - exc.ArgumentError, + exc.CompileError, "All selectables passed to CompoundSelect " "must have identical numbers of columns; " "select #1 has 2 columns, select #2 has 3", - union, - table3.select(), - table1.select(), + union(table3.select(), table1.select()).compile, ) x = union( |
