summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/compiler.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-12-05 21:14:09 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-12-05 21:14:09 +0000
commita5f2aab9e0177b32aebb23ea4393c1f71a5e8831 (patch)
tree2e9e105195f64ce63db746bf779d7ae0dbf9815d /lib/sqlalchemy/sql/compiler.py
parent9629838f7dceab972c70938b58b7ec1ff44739e2 (diff)
downloadsqlalchemy-a5f2aab9e0177b32aebb23ea4393c1f71a5e8831.tar.gz
- tables with schemas can still be used in sqlite, firebird,
schema name just gets dropped [ticket:890]
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
-rw-r--r--lib/sqlalchemy/sql/compiler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py
index ea7c1b734..1cbfd94d2 100644
--- a/lib/sqlalchemy/sql/compiler.py
+++ b/lib/sqlalchemy/sql/compiler.py
@@ -1021,7 +1021,7 @@ class IdentifierPreparer(object):
if name is None:
name = table.name
result = self.quote(table, name)
- if use_schema and getattr(table, "schema", None):
+ if not self.omit_schema and use_schema and getattr(table, "schema", None):
result = self.quote(table, table.schema) + "." + result
return result