- attached oraclesqa.diff
Patch for oracle reflection, fails on Table call with autoload
The following code fails:
import sqlalchemy from sqlalchemy import Table, MetaData
oradb = sqlalchemy.create_engine("oracle://user:pass@dsn") oracon = oradb.connect() meta = MetaData(oradb)
students = Table('STUDENT', meta, autoload=True, schema='FS')
Returning:
ACTUALNAME: STUDENT Traceback (most recent call last): File "contest.py", line 11, in ? students = Table('STUDENT', meta, autoload=True, schema='FS') File "build/bdist.linux-i686/egg/sqlalchemy/schema.py", line 117, in call File "build/bdist.linux-i686/egg/sqlalchemy/engine/base.py", line 845, in reflecttable File "build/bdist.linux-i686/egg/sqlalchemy/engine/base.py", line 1096, in reflecttable File "build/bdist.linux-i686/egg/sqlalchemy/databases/oracle.py", line 441, in reflecttable File "build/bdist.linux-i686/egg/sqlalchemy/databases/oracle.py", line 404, in _normalize_name TypeError: _requires_quotes() takes exactly 2 arguments (3 given)
The attached patch should correct this.
Comments (3)
-
Account Deleted -
repo owner - changed status to resolved
patched in 66142098952f6c1027dbede243a25c003671dee3
-
repo owner - removed milestone
Removing milestone: 0.4.0 (automated comment)
- Log in to comment
patch to correct issue