]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
psycopg2 2.4 no longer accepts % in bind place holders
authorDenise Govindarajan <denise.govindarajan@pcusa.org>
Tue, 15 Mar 2011 21:47:36 +0000 (17:47 -0400)
committerDenise Govindarajan <denise.govindarajan@pcusa.org>
Tue, 15 Mar 2011 21:47:36 +0000 (17:47 -0400)
test/sql/test_query.py

index bdf67098b77afd0115e861ecec7d480ae53459ff..3e1a26cdedb292808c8d7fee850dd81b55a32978 100644 (file)
@@ -932,6 +932,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},
@@ -947,6 +948,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(