]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix test for compatibility with 1.3 5752/head
authorGord Thompson <gord@gordthompson.com>
Tue, 8 Dec 2020 20:20:37 +0000 (13:20 -0700)
committerGord Thompson <gord@gordthompson.com>
Tue, 8 Dec 2020 20:20:37 +0000 (13:20 -0700)
test/dialect/mssql/test_compiler.py

index 756223b6e8ff6e7d5687f2e3ec2c6329b68be161..8119612e1a32585eb9ddee5cdfb4c503870b7555 100644 (file)
@@ -20,6 +20,7 @@ from sqlalchemy import sql
 from sqlalchemy import String
 from sqlalchemy import Table
 from sqlalchemy import testing
+from sqlalchemy import text
 from sqlalchemy import union
 from sqlalchemy import UniqueConstraint
 from sqlalchemy import update
@@ -1299,7 +1300,7 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL):
         )
 
         idx = Index(
-            "foo", tbl.c.x, mssql_include=[tbl.c.y], mssql_where="y > 1"
+            "foo", tbl.c.x, mssql_include=[tbl.c.y], mssql_where=text("y > 1")
         )
         self.assert_compile(
             schema.CreateIndex(idx),