]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Strip schema from access tables
authorPaul Johnston <paj@pajhome.org.uk>
Fri, 8 Feb 2008 12:05:28 +0000 (12:05 +0000)
committerPaul Johnston <paj@pajhome.org.uk>
Fri, 8 Feb 2008 12:05:28 +0000 (12:05 +0000)
lib/sqlalchemy/databases/access.py

index 587470f8ef1f418bb074996cdc1c027e50640961..4e95b5bf33866f5f8b754d3f9b8daa8e6da054cf 100644 (file)
@@ -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):