diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-04-15 22:05:37 +0200 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-04-15 22:05:37 +0200 |
commit | 5162fc778acb1ecc8f879578e48bde9ce767775c (patch) | |
tree | 7c4e9d9686ffc2c653e0235943047197fd69cb7a /system/database/DB_active_rec.php | |
parent | 3a11555ec302eb81f5d8c1d7984f24501674b736 (diff) |
Fixed an AR bug when joining with a table alias and table prefix (#4400).
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 d58580637..6f50c110d 100644 --- a/system/database/DB_active_rec.php +++ b/system/database/DB_active_rec.php @@ -1476,7 +1476,7 @@ class CI_DB_active_record extends CI_DB_driver { $sql = ( ! $this->ar_distinct) ? 'SELECT ' : 'SELECT DISTINCT ';
- $sql .= (count($this->ar_select) == 0) ? '*' : implode(', ', $this->ar_select);
+ $sql .= (count($this->ar_select) == 0) ? '*' : implode(', ', $this->_filter_table_aliases($this->ar_select));
if ($select_override !== FALSE)
{
|