summaryrefslogtreecommitdiff
path: root/test/sql/test_compiler.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2019-12-06 10:24:25 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2019-12-06 10:57:19 -0500
commita7a8804a836ce9edcfdee7d7406cd3c050b34f05 (patch)
tree55cd401559f5c5189504515bbba326c3b7a01181 /test/sql/test_compiler.py
parent1ab483ac5481cb60e898f0bfdad54e5ca45bbb80 (diff)
downloadsqlalchemy-a7a8804a836ce9edcfdee7d7406cd3c050b34f05.tar.gz
Include DISTINCT in error message for label reference
Needed to add tests to ensure this label reference is handled correctly, so also modified the exception message to be more clear if someone has this error within distinct(). Change-Id: I6e685e46ae336596272d14366445ac224c18d92c
Diffstat (limited to 'test/sql/test_compiler.py')
-rw-r--r--test/sql/test_compiler.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/sql/test_compiler.py b/test/sql/test_compiler.py
index ca73f6c18..486b54682 100644
--- a/test/sql/test_compiler.py
+++ b/test/sql/test_compiler.py
@@ -2073,7 +2073,8 @@ class SelectTest(fixtures.TestBase, AssertsCompiledSQL):
# to check the special thing CompoundSelect does with labels
assert_raises_message(
exc.CompileError,
- "Can't resolve label reference for ORDER BY / GROUP BY. Textual "
+ "Can't resolve label reference for ORDER BY / GROUP BY / "
+ "DISTINCT etc. Textual "
"SQL expression 'noname'",
union(
select([table1.c.myid, table1.c.name]),