From: Paul Johnston Date: Fri, 8 Feb 2008 12:05:28 +0000 (+0000) Subject: Strip schema from access tables X-Git-Tag: rel_0_4_3~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e6cd582ca364ff2890f4813871e6b0d65944959;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Strip schema from access tables --- diff --git a/lib/sqlalchemy/databases/access.py b/lib/sqlalchemy/databases/access.py index 587470f8ef..4e95b5bf33 100644 --- a/lib/sqlalchemy/databases/access.py +++ b/lib/sqlalchemy/databases/access.py @@ -375,6 +375,13 @@ class AccessCompiler(compiler.DefaultCompiler): """FOR UPDATE is not supported by Access; silently ignore""" return '' + # Strip schema + def visit_table(self, table, asfrom=False, **kwargs): + if asfrom: + return self.preparer.quote(table, table.name) + else: + return "" + class AccessSchemaGenerator(compiler.SchemaGenerator): def get_column_specification(self, column, **kwargs):