summaryrefslogtreecommitdiff
path: root/test/sql/test_operators.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-09-22 16:48:49 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-09-22 16:48:49 -0400
commit23d300c874ef0228f5141c1435bf2dc265152a59 (patch)
tree1819c1caa63b574ccb825f3e4de48c8aee4cd048 /test/sql/test_operators.py
parent6c50ffcf44b8e363a5d3590955be1f62fd5e780d (diff)
downloadsqlalchemy-23d300c874ef0228f5141c1435bf2dc265152a59.tar.gz
- [bug] A tweak to column precedence which moves the
"concat" and "match" operators to be the same as that of "is", "like", and others; this helps with parenthesization rendering when used in conjunction with "IS". [ticket:2564]
Diffstat (limited to 'test/sql/test_operators.py')
-rw-r--r--test/sql/test_operators.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/sql/test_operators.py b/test/sql/test_operators.py
index 951309d19..b104f6097 100644
--- a/test/sql/test_operators.py
+++ b/test/sql/test_operators.py
@@ -345,6 +345,10 @@ class OperatorPrecedenceTest(fixtures.TestBase, testing.AssertsCompiledSQL):
"SELECT op.field FROM op WHERE (op.field = op.field) "
"BETWEEN :param_1 AND :param_2")
+ self.assert_compile(table.select(
+ table.c.field.match(table.c.field).is_(None)),
+ "SELECT op.field FROM op WHERE (op.field MATCH op.field) IS NULL")
+
class OperatorAssociativityTest(fixtures.TestBase, testing.AssertsCompiledSQL):
__dialect__ = 'default'