Simplify and correct a query to allow it to be executed as 5 normal subqueries instead of a huge join. I think it needs a bit more optimization, but I hope this improves commit performance a bit for now.
Simplify and correct a query to allow it to be executed as 5 normal subqueries
instead of a huge join. I think it needs a bit more optimization, but I hope
this improves commit performance a bit for now.

The SQLite query analyzer shows that the same subquery is performed more then
once, so this can really use some further work.

* subversion/libsvn_wc/wc-queries.sql
  (STMT_SELECT_WORKING_CHILDREN): Add MAX() to the subqueries that retrieve the
    parent node op_depth as a single result instead of as a join.


git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@1084001 13f79535-47bb-0310-9956-ffa450edef68

YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion