that's an ImmutableDict so we can just call union() on it as we're supposed to 
be....this is http://www.sqlalchemy.org/trac/ticket/2661 and it's committed in 
reec3f59080ac, thanks !



On Feb 7, 2013, at 11:09 PM, Ryan Kelly wrote:

> Calling yield_per on a query followed by execution_options results in
> the following error:
> 
> Traceback (most recent call last):
>  File "/tmp/execution_options.py", line 18, in <module>
>    query = query.execution_options(stream_results=True)
>  File "<string>", line 1, in <lambda>
>  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line
> 50, in generate
>    fn(self, *args[1:], **kw)
>  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line
> 1040, in execution_options
>    self._execution_options = self._execution_options.union(kwargs)
> AttributeError: 'dict' object has no attribute 'union'
> 
> Attached is a patch with a test case.
> 
> -Ryan Kelly
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sqlalchemy" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sqlalchemy+unsubscr...@googlegroups.com.
> To post to this group, send email to sqlalchemy@googlegroups.com.
> Visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
> <yield_per.patch>

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to