On Monday, November 18, 2013 1:46:18 PM UTC-5, Michael Bayer wrote:
>
> s.query(A).update({A.data: A.data + {"foo": "bat", "hoho": "lala"}},
> synchronize_session="fetch")
>
...
> the UPDATE looks like:
>
> UPDATE a SET data=(a.data || %(data_1)s)
> {'data_1': {'foo': 'bat', 'hoho': 'lala’}}
>
that's a whole lot nicer than mine.
i think i got to my approach by figuring out the SQL first (which required
the ARRAY), then backtracking into what would generate it. it looks way
better with bind ( your example )
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.