]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- repair signature for base get_unique_constraints() method
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 20 Jan 2014 21:09:40 +0000 (16:09 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 20 Jan 2014 21:09:40 +0000 (16:09 -0500)
- test_autoincrement_col still needs reflection overall

lib/sqlalchemy/engine/interfaces.py
lib/sqlalchemy/testing/suite/test_reflection.py

index c26681cc3c40f5f5eaccbed7459689a5ba09cfe2..5c44933e80c2dbfc8226e1921fcf6e8ea0d7c5c1 100644 (file)
@@ -342,7 +342,7 @@ class Dialect(object):
 
         raise NotImplementedError()
 
-    def get_unique_constraints(self, table_name, schema=None, **kw):
+    def get_unique_constraints(self, connection, table_name, schema=None, **kw):
         """Return information about unique constraints in `table_name`.
 
         Given a string `table_name` and an optional string `schema`, return
index b30f32cffbfafc1d0125699144f9ba427f0b4652..9f737bc64397813566d1412f0fbca070f106ef99 100644 (file)
@@ -455,6 +455,7 @@ class ComponentReflectionTest(fixtures.TablesTest):
     def test_get_table_oid_with_schema(self):
         self._test_get_table_oid('users', schema='test_schema')
 
+    @testing.requires.table_reflection
     @testing.provide_metadata
     def test_autoincrement_col(self):
         """test that 'autoincrement' is reflected according to sqla's policy.