Skip to content

Commit

Permalink
Merge pull request bcit-ci#504 from juanjosegzl/develop
Browse files Browse the repository at this point in the history
Fixing issue 465: select_max is adding prefix to table aliases when is no
  • Loading branch information
Phil Sturgeon committed Sep 28, 2011
2 parents 5a3284e + 8b4d83b commit 703d344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/database/DB_active_rec.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ protected function _max_min_avg_sum($select = '', $alias = '', $type = 'MAX')
$alias = $this->_create_alias_from_table(trim($select));
}

$sql = $type.'('.$this->_protect_identifiers(trim($select)).') AS '.$this->_protect_identifiers(trim($alias));
$sql = $this->_protect_identifiers($type.'('.trim($select).')').' AS '.$this->_protect_identifiers(trim($alias));

$this->ar_select[] = $sql;

Expand Down

0 comments on commit 703d344

Please sign in to comment.