From: Mike Bayer Date: Thu, 14 Jan 2016 22:50:03 +0000 (-0500) Subject: - there was a DATEPART test after all, fix format X-Git-Tag: rel_1_0_12~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a36ace7ae36c91c0e2de7426fd20700dec28ee49;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - there was a DATEPART test after all, fix format (cherry picked from commit 0ff3f95d5b41335c977e1bdbe88b7dfd4ae581e1) --- diff --git a/test/dialect/mssql/test_compiler.py b/test/dialect/mssql/test_compiler.py index 9d89f040b3..99fc9f06c0 100644 --- a/test/dialect/mssql/test_compiler.py +++ b/test/dialect/mssql/test_compiler.py @@ -383,7 +383,7 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL): for field in 'day', 'month', 'year': self.assert_compile( select([extract(field, t.c.col1)]), - 'SELECT DATEPART("%s", t.col1) AS anon_1 FROM t' % field) + 'SELECT DATEPART(%s, t.col1) AS anon_1 FROM t' % field) def test_update_returning(self): table1 = table(