summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/oracle
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-09-30 20:00:46 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2012-09-30 20:00:46 +0000
commitbba1d01b26adb2db5b3c3fc41b94834cec5c73fc (patch)
tree8d8b78427343fe0afae089602adbea4b8bde60e2 /lib/sqlalchemy/dialects/oracle
parent0c3e2b49b99655edba28230a70622982faba7185 (diff)
downloadsqlalchemy-bba1d01b26adb2db5b3c3fc41b94834cec5c73fc.tar.gz
- [bug] The CreateIndex construct in Oracle
will now schema-qualify the name of the index to be that of the parent table. Previously this name was omitted which apparently creates the index in the default schema, rather than that of the table.
Diffstat (limited to 'lib/sqlalchemy/dialects/oracle')
-rw-r--r--lib/sqlalchemy/dialects/oracle/base.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/oracle/base.py b/lib/sqlalchemy/dialects/oracle/base.py
index 399f90035..c7cc6a7f9 100644
--- a/lib/sqlalchemy/dialects/oracle/base.py
+++ b/lib/sqlalchemy/dialects/oracle/base.py
@@ -631,6 +631,10 @@ class OracleDDLCompiler(compiler.DDLCompiler):
return text
+ def visit_create_index(self, create, **kw):
+ return super(OracleDDLCompiler, self).\
+ visit_create_index(create, include_schema=True)
+
class OracleIdentifierPreparer(compiler.IdentifierPreparer):
reserved_words = set([x.lower() for x in RESERVED_WORDS])