David,
On 12/05/2010 18:00, David Gardner wrote:
Looks like your issuing query like:
query.order_by([col1, col2])
Should have thought about that one, i.e. search for "order_by([" instead
of just "order_by".
in 0.6 you should instead be doing:
query.order_by(col1, col2)
Also take a look at:
http://www.sqlalchemy.org/trac/wiki/06Migration#DeprecatedRemovedORMElements
Have and will keep consulting this while I move to 0.6.
Thanks for your quick reply
Werner
On 05/12/2010 08:53 AM, werner wrote:
I just started migrating to 0.6 and I get:
c:\python26\lib\site-packages\sqlalchemy-0.6.0-py2.6.egg\sqlalchemy\util.py:239:
DeprecationWarning: functions overriding warnings.showwarning() must
support the 'line' argument
warnings.warn(msg, warning_type, stacklevel=3)
<string>:1: SADeprecationWarning: order_by(self, *criterion) now accepts
multiple criterion arguments as a variable argument list. Supplying
criterion as a single list is deprecated and support will be removed in
a future release.
Is it normal that it does not give me any indication where in my code I
am hitting this?
What do I need to change to get me more details?
Werner
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en.