diff options
author | Andrey Andreev <narf@bofh.bg> | 2011-10-04 17:13:52 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2011-10-04 17:13:52 +0200 |
commit | 79edb997be293e997afc5e008125bf334855f4d4 (patch) | |
tree | 742c7065c8fa55fdcce26652bc82d52976554c8a /system/database/DB_active_rec.php | |
parent | 2cec39f2c221d2acab5dbd830b6dd64db01b24d9 (diff) | |
parent | 0f614c692eb2db49da98b8eca6247bd8c245a64e (diff) |
Merge upstream changes
Diffstat (limited to 'system/database/DB_active_rec.php')
-rw-r--r-- | system/database/DB_active_rec.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_active_rec.php b/system/database/DB_active_rec.php index 7162e2ac5..83518232e 100644 --- a/system/database/DB_active_rec.php +++ b/system/database/DB_active_rec.php @@ -196,7 +196,7 @@ class CI_DB_active_record extends CI_DB_driver { $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; |