Chlorus / sqlautocode

Automatically exported from code.google.com/p/sqlautocode
Other
0 stars 0 forks source link

get_default_schema_name wants a connection, not an engine #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Running autocode.py without the --schema option I get the following error,
with latest SQLAlchemy:

Traceback (most recent call last):
  File "autocode.py", line 4, in <module>
    sqlautocode.main()
  File "/home/lele/wip/pypapi/autocode/sqlautocode/__init__.py", line 19,
in main
    reflection_schema = db.dialect.get_default_schema_name(db)
  File "/home/lele/wip/sqla/svn-trunk/lib/sqlalchemy/engine/base.py", line
1885, in decorated
    return connection.info[key]
AttributeError: 'Engine' object has no attribute 'info'

I'm attaching a possible fix.

ciao, lele

Original issue reported on code.google.com by lelegai...@gmail.com on 12 Apr 2008 at 11:31

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in r34, thanks!

Original comment by jason.ki...@gmail.com on 13 Apr 2008 at 4:17