Skip to content

Commit

Permalink
Support Literal in group and having
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Jul 27, 2011
1 parent 0304c6e commit 17e319d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NotORM/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ protected function execute() {
$result = false;
$exception = null;
$parameters = array();
foreach (array_merge($this->select, array($this), $this->order, $this->unionOrder) as $val) {
foreach (array_merge($this->select, array($this, $this->group, $this->having), $this->order, $this->unionOrder) as $val) {
if (($val instanceof NotORM_Literal || $val instanceof self) && $val->parameters) {
$parameters = array_merge($parameters, $val->parameters);
}
Expand Down

0 comments on commit 17e319d

Please sign in to comment.