pods-framework/pods — pull request #922 by MattiasBuelens (2012-12-30 15:36:51+00:00)
Title: Fixed custom SQL query rewriting in PodsData->build().

I noticed that whenever I passed a custom `$params['sql']` to `PodsData->build()`, it would simply be ignored. I dug into the code and fixed it up. The handling is backwards now: instead of treating a custom query as a 'special case', the default query is now the special case.

I tested it with some of the regular queries used by Pods and they all still seem to work fine.

(I borked up the tabs again, sorry for the unclear diffs in the commit. :confused:)