Skip to content

Commit

Permalink
Apply fix from Alexis-benoist#80
Browse files Browse the repository at this point in the history
  • Loading branch information
eveith committed Oct 6, 2021
1 parent 4f9dbda commit 6855f88
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion eralchemy/sqla.py
Expand Up @@ -47,7 +47,14 @@ def table_to_intermediary(table):
"""Transform an SQLAlchemy Table object to it's intermediary representation. """
return Table(
name=table.fullname,
columns=[column_to_intermediary(col) for col in table.c._data.values()]
columns=[
column_to_intermediary(col)
for col in getattr(
table.c,
"_colset",
getattr(table.c, "_data", {}).values()
)
]
)


Expand Down

0 comments on commit 6855f88

Please sign in to comment.