summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authorDan Montgomery <noctrum@gmail.com>2011-08-21 22:50:23 +0200
committerDan Montgomery <noctrum@gmail.com>2011-08-21 22:50:23 +0200
commit7e7338e1e12fd2deb769f3d486b3bcb253e7e275 (patch)
tree83a3978fac171a671faed09289f5d51c2556d82c /system/database
parent9c631750dfa62c748ef9cd9bccdde3250d6e5b72 (diff)
Fix for issue #106
Diffstat (limited to 'system/database')
-rw-r--r--system/database/DB_active_rec.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_active_rec.php b/system/database/DB_active_rec.php
index 841ede28e..37d162bc1 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 '.$alias;
+ $sql = $type.'('.$this->_protect_identifiers(trim($select)).') AS '.$this->_protect_identifiers(trim($alias));
$this->ar_select[] = $sql;