diff options
author | Derek Jones <derek.jones@ellislab.com> | 2008-01-29 19:44:54 +0100 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2008-01-29 19:44:54 +0100 |
commit | c6ad0237eb6957046343ca654ab1c7d26787d466 (patch) | |
tree | 6e758af4fa59c9f45d011185de36abbc1708535a /system/database/DB_active_rec.php | |
parent | 1d3137b68e41bff7541fa249d8946409d463f7f2 (diff) |
Abstracted FROM table listing in Active Record for databases that do not support parenthetic grouping of tables to explicitly define operator precedence
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 1ad4f3d1f..37bf9ed05 100644 --- a/system/database/DB_active_rec.php +++ b/system/database/DB_active_rec.php @@ -1343,7 +1343,7 @@ class CI_DB_active_record extends CI_DB_driver { if (count($this->ar_from) > 0)
{
$sql .= "\nFROM ";
- $sql .= '(' . implode(', ', $this->ar_from) . ')';
+ $sql .= $this->_from_tables($this->ar_from);
}
if (count($this->ar_join) > 0)
|