From: Mike Bayer Date: Mon, 14 Jul 2008 19:39:50 +0000 (+0000) Subject: possible fix for MS-SQL version of match() test, but the real solution here may be... X-Git-Tag: rel_0_5beta2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45a2b0fedfa069bbd110727eaee5185e8f3e1848;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git possible fix for MS-SQL version of match() test, but the real solution here may be to have the correct default paramstyle set up on the MS-SQL dialect. --- diff --git a/test/sql/select.py b/test/sql/select.py index a5ad557d28..b6a1f7ccc6 100644 --- a/test/sql/select.py +++ b/test/sql/select.py @@ -470,7 +470,7 @@ sq.myothertable_othername AS sq_myothertable_othername FROM (" + sqstring + ") A for expr, check, dialect in [ (table1.c.myid.match('somstr'), "mytable.myid MATCH ?", sqlite.SQLiteDialect()), (table1.c.myid.match('somstr'), "MATCH (mytable.myid) AGAINST (%s IN BOOLEAN MODE)", mysql.MySQLDialect()), - (table1.c.myid.match('somstr'), "CONTAINS (mytable.myid, ?)", mssql.MSSQLDialect()), + (table1.c.myid.match('somstr'), "CONTAINS (mytable.myid, :myid_1)", mssql.MSSQLDialect()), (table1.c.myid.match('somstr'), "mytable.myid @@ to_tsquery(%(myid_1)s)", postgres.PGDialect()), (table1.c.myid.match('somstr'), "CONTAINS (mytable.myid, :myid_1)", oracle.OracleDialect()), ]: