When reflecting tables the owner attribute does not seem to get
propagated to tables connected by foreign keys.


from sqlalchemy import *

eng = create_engine('oracle://xxx:[EMAIL PROTECTED]')
md = BoundMetaData(eng)
userTable = Table('USERS',md,autoload=True,owner='xxx')

Traceback (most recent call last):
  File "C:\code\test.py", line 7, in ?
    userTable = Table('USERS',md,autoload=True,owner='xxx')
  File "build\bdist.win32\egg\sqlalchemy\schema.py", line 143, in
__call__
  File "build\bdist.win32\egg\sqlalchemy\engine\base.py", line 505, in
reflecttable
  File "build\bdist.win32\egg\sqlalchemy\databases\oracle.py", line
283, in reflecttable
  File "build\bdist.win32\egg\sqlalchemy\schema.py", line 141, in
__call__
  File "build\bdist.win32\egg\sqlalchemy\engine\base.py", line 315, in
reflecttable
  File "build\bdist.win32\egg\sqlalchemy\engine\base.py", line 505, in
reflecttable
  File "build\bdist.win32\egg\sqlalchemy\databases\oracle.py", line
221, in reflecttable
sqlalchemy.exceptions.AssertionError: There are multiple tables with
name workorderlabor in the schema, you must specifie owner


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to