Skip to content

Commit

Permalink
Add support for composite columns
Browse files Browse the repository at this point in the history
  • Loading branch information
atugushev committed Jan 7, 2025
1 parent 02045c4 commit 04cc0c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sqlalchemy_utils/listeners.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ def coercion_listener(mapper, class_):
"""
for prop in mapper.iterate_properties:
try:
if not prop.columns:
continue
listener = prop.columns[0].type.coercion_listener
except AttributeError:
continue
Expand Down

0 comments on commit 04cc0c8

Please sign in to comment.