Skip to content

Commit

Permalink
Fix backward compatility
Browse files Browse the repository at this point in the history
  • Loading branch information
darlannakamura committed Jul 5, 2022
1 parent 47b371d commit c6a2766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eralchemy2/sqla.py
Expand Up @@ -48,7 +48,7 @@ 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._colset]
columns=[column_to_intermediary(col) for col in getattr(table.c,"_colset",getattr(table.c,"_data",{}).values())]
)


Expand Down

0 comments on commit c6a2766

Please sign in to comment.