summaryrefslogtreecommitdiff
path: root/test/dialect/mysql/test_compiler.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2016-01-23 14:29:25 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2016-01-23 14:29:25 -0500
commit269313218ddd06a21387085295c553becbd00e46 (patch)
tree88d9ad2d3ec29fe09feb1d5ec27e69c78bb93397 /test/dialect/mysql/test_compiler.py
parent24bad4bf1af8c794948270c0e043adf2ecf8b7e2 (diff)
downloadsqlalchemy-269313218ddd06a21387085295c553becbd00e46.tar.gz
- move out match compiler test to test_compiler
- test_query isn't assertscompiledsql
Diffstat (limited to 'test/dialect/mysql/test_compiler.py')
-rw-r--r--test/dialect/mysql/test_compiler.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/dialect/mysql/test_compiler.py b/test/dialect/mysql/test_compiler.py
index 60af82bab..0571ce526 100644
--- a/test/dialect/mysql/test_compiler.py
+++ b/test/dialect/mysql/test_compiler.py
@@ -184,6 +184,12 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL):
schema.CreateTable(t2).compile, dialect=mysql.dialect()
)
+ def test_match(self):
+ matchtable = table('matchtable', column('title', String))
+ self.assert_compile(
+ matchtable.c.title.match('somstr'),
+ "MATCH (matchtable.title) AGAINST (%s IN BOOLEAN MODE)")
+
def test_for_update(self):
table1 = table('mytable',
column('myid'), column('name'), column('description'))