Problem with column_mapped_collection and joined table inheritance

12 views
Skip to first unread message

Debilski

unread,
Apr 19, 2012, 10:04:27 AM4/19/12
to sqlal...@googlegroups.com
Hi,

it seems there has been a bug introduced in http://hg.sqlalchemy.org/sqlalchemy/rev/4e9c059abca3 when using both column_mapped_collections and joined table inheritance.

Due to the fact that::

    cols = [c.key for c in [
                expression._only_column_elements(q, "mapping_spec") 
                for q in util.to_list(mapping_spec)]]

removes all table information from the column data, `_SerializableColumnGetter` fails in the `__call__` method as `self.colkeys` does not contain the names which `m.mapped_table.columns[k]` expects.

Cheers
/rike

Michael Bayer

unread,
Apr 19, 2012, 10:31:50 AM4/19/12
to sqlal...@googlegroups.com
Hi -

thanks, I've reopened ticket 2409.    

Please send along more detail next time as I had to do quite a bit of guessing as to how to reproduce a bug here, thanks !



--
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sqlalchemy/-/CMnkZjvOkzkJ.
To post to this group, send email to sqlal...@googlegroups.com.
To unsubscribe from this group, send email to sqlalchemy+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.

Debilski

unread,
Apr 19, 2012, 10:58:26 AM4/19/12
to sqlal...@googlegroups.com
Thanks for adding it. I’ll promise to include a test case next time.

Cheers
/rike

Reply all
Reply to author
Forward
0 new messages