fixed in r4156

On Feb 11, 2008, at 4:20 AM, svilen wrote:

> hi.
> running the dbcook tests, from v4070 onwards i get the following
> error:
> Traceback (most recent call last):
>  File "rr.py", line 68, in <module>
>    for q in session.query(A).all(): print q
>  File "sqlalchemy/orm/query.py", line 746, in all
>    return list(self)
>  File "sqlalchemy/orm/query.py", line 887, in iterate_instances
>    rows.append(main(context, row))
>  File "sqlalchemy/orm/query.py", line 831, in main
>    extension=context.extension,
> only_load_props=context.only_load_props,
> refresh_instance=context.refresh_instance
>  File "sqlalchemy/orm/mapper.py", line 1291, in _instance
>    row = self.translate_row(mapper, row)
>  File "sqlalchemy/orm/mapper.py", line 1388, in translate_row
>    translator = create_row_adapter(self.mapped_table,
> tomapper.mapped_table, equivalent_columns=self._equivalent_columns)
>  File "sqlalchemy/orm/util.py", line 202, in create_row_adapter
>    corr = from_.corresponding_column(c)
>  File "sqlalchemy/sql/expression.py", line 1628, in
> corresponding_column
>    i = c.proxy_set.intersection(target_set)
> AttributeError: 'NoneType' object has no attribute 'proxy_set'
>
> The case is somewhat strange but is working before that - a
> polymorphic union of concrete inheritances where the root-table is
> not included in the union (i.e. leafs only). If it gets included, the
> error goes away.
> i dont know, if it's the case that is too weird, i could workaround it
> possibly.
>
> svilen
>
> >
> <rr.py>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to