joomla/joomla-platform — pull request #958 by gpongelli (2012-03-03 17:51:21+00:00)
Title: Added capability to use differet glue in WHERE clause.

First where() call doesn't need glue, the other calls must have this set.
This change permit to call a sequence like this:
$q->where("a = 1")->where("b = 1", 'OR')->where("c = 1", 'AND');
that will be translated in
WHERE a = 1 OR b = 1 AND c = 1

Second parameter MUST be set from second to last where() call, even if it is 'AND' because it's removed default $glue value.