summaryrefslogtreecommitdiffstats
path: root/system/database/DB_driver.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-07-19 13:46:51 +0200
committerAndrey Andreev <narf@bofh.bg>2012-07-19 13:46:51 +0200
commit2d486231c0fbc9a5c9ad5bf6897e7bb1aff275ba (patch)
tree542257bc06ceeea9f1df658121db3953969a5084 /system/database/DB_driver.php
parent96feb586c7fc2c232675590fe4e1032198a39535 (diff)
Implement _compile_order_by()
Diffstat (limited to 'system/database/DB_driver.php')
-rw-r--r--system/database/DB_driver.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index 43ea10023..a327f4ad9 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -1128,8 +1128,8 @@ abstract class CI_DB_driver {
}
return 'UPDATE '.$table.' SET '.implode(', ', $valstr)
- .$this->_compile_where()
- .(empty($this->qb_orderby) ? '' : ' ORDER BY '.implode(', ', $this->qb_orderby))
+ .$this->_compile_wh('qb_where')
+ .$this->_compile_order_by()
.($this->qb_limit ? ' LIMIT '.$this->qb_limit : '');
}