diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-10-09 12:36:31 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-10-09 12:36:31 +0200 |
commit | ea7a866f6107d4b50b4a7059f1373035aa12dd23 (patch) | |
tree | bf3c2d9f16d098358108f4ad609cf2b068c45ba6 /system/database/drivers/cubrid | |
parent | 9ac557f2473844f3c2207189f371f827dbaddb71 (diff) | |
parent | 580fe8ec482f5df7ca5b91e11b13b72a8f3ed0b8 (diff) |
Merge changes from develop
Diffstat (limited to 'system/database/drivers/cubrid')
-rw-r--r-- | system/database/drivers/cubrid/cubrid_driver.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/system/database/drivers/cubrid/cubrid_driver.php b/system/database/drivers/cubrid/cubrid_driver.php index 28724e0e8..01d0ee39e 100644 --- a/system/database/drivers/cubrid/cubrid_driver.php +++ b/system/database/drivers/cubrid/cubrid_driver.php @@ -429,6 +429,26 @@ class CI_DB_cubrid_driver extends CI_DB { // -------------------------------------------------------------------- /** + * FROM tables + * + * Groups tables in FROM clauses if needed, so there is no confusion + * about operator precedence. + * + * @return string + */ + protected function _from_tables() + { + if ( ! empty($this->qb_join) && count($this->qb_from) > 1) + { + return '('.implode(', ', $this->qb_from).')'; + } + + return implode(', ', $this->qb_from); + } + + // -------------------------------------------------------------------- + + /** * Close DB Connection * * @return void |