[sqlalchemy] Re: query().all() OK, query().delete() can't locate bind

2009-09-16 Thread Orca
you have to use Session.execute with explicit mapper defined, for some reason session.query.delete/update is not detecting any bindables in statement as it does for select-queries. if your TreeNode Table defined as Tree_Node_Table:

[sqlalchemy] Re: query().all() OK, query().delete() can't locate bind

2009-09-16 Thread Jeff Enderwick
So is this likely a sqlalchemy bug? Should I just dig in a look into why the delete is not finding the bind where the select is? FWIW, here's a ref to delete+where: http://dev.mysql.com/doc/refman/5.0/en/delete.html 2009/9/16 Orca trueo...@gmail.com you have to use Session.execute with