From: Denise Govindarajan Date: Tue, 15 Mar 2011 21:47:36 +0000 (-0400) Subject: psycopg2 2.4 no longer accepts % in bind place holders X-Git-Tag: rel_0_7b3~23^2^2^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d33e0a597d6409d2e19d709a6c9acb25b3150bcc;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git psycopg2 2.4 no longer accepts % in bind place holders --- diff --git a/test/sql/test_query.py b/test/sql/test_query.py index 1adb00aea1..8f7c4c6a7b 100644 --- a/test/sql/test_query.py +++ b/test/sql/test_query.py @@ -1025,6 +1025,7 @@ class PercentSchemaNamesTest(TestBase): def teardown_class(cls): metadata.drop_all() + @testing.skip_if(lambda: testing.against('postgresql'), "psycopg2 2.4 no longer accepts % in bind placeholders") def test_single_roundtrip(self): percent_table.insert().execute( {'percent%':5, 'spaces % more spaces':12}, @@ -1040,6 +1041,7 @@ class PercentSchemaNamesTest(TestBase): ) self._assert_table() + @testing.skip_if(lambda: testing.against('postgresql'), "psycopg2 2.4 no longer accepts % in bind placeholders") @testing.crashes('mysql+mysqldb', 'MySQLdb handles executemany() inconsistently vs. execute()') def test_executemany_roundtrip(self): percent_table.insert().execute(