]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix the paramstyle check
authorPhilip Jenvey <pjenvey@underboss.org>
Sat, 25 Jul 2009 19:35:14 +0000 (19:35 +0000)
committerPhilip Jenvey <pjenvey@underboss.org>
Sat, 25 Jul 2009 19:35:14 +0000 (19:35 +0000)
test/dialect/test_mysql.py

index 55792274a821d78c006c9043697fe6cfb31adbad..40526415221b2d70011a85151e684fa1ae80fd4b 100644 (file)
@@ -1103,7 +1103,7 @@ class MatchTest(TestBase, AssertsCompiledSQL):
         metadata.drop_all()
 
     def test_expression(self):
-        format = testing.db.dialect == 'format' and '%s' or '?'
+        format = testing.db.dialect.paramstyle == 'format' and '%s' or '?'
         self.assert_compile(
             matchtable.c.title.match('somstr'),
             "MATCH (matchtable.title) AGAINST (%s IN BOOLEAN MODE)" % format)