xbmc/xbmc — pull request #952 by jmarshallnz (2012-05-10 03:20:21+00:00)
Title: Videodb split where join order

This splits the join/where and order clauses passed to the videodb Get*ByWhere() functions.

The idea behind it is so that the WHERE clause is always consistent - i.e. WHERE is added by the Get*ByWhere() functions, not by anything else. This is needed for set fetching as we need to combine multiple where clauses.

I'm not sure about the last commit - while wrapping each of these in () doesn't break anything, I'm not sure if they're all required. @Montellese?