From: Philip Jenvey Date: Sat, 25 Jul 2009 19:35:14 +0000 (+0000) Subject: fix the paramstyle check X-Git-Tag: rel_0_6_6~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d9c61489e180a8f67e0050fd49d727df467a2eb;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix the paramstyle check --- diff --git a/test/dialect/test_mysql.py b/test/dialect/test_mysql.py index 55792274a8..4052641522 100644 --- a/test/dialect/test_mysql.py +++ b/test/dialect/test_mysql.py @@ -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)