summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-12-12 10:29:04 +0100
committerAndrey Andreev <narf@devilix.net>2016-12-12 10:29:34 +0100
commitd478bef9d2154d5ec8bef9329a01d4a7ce37a544 (patch)
tree2a5f4ed5db8db6ac1aaf798660f0a5dcbcb09954
parent961271dc3d02d7b2f71847983c8e5a03ca003582 (diff)
Merge pull request #4941 from aquilax/fix-pdo-sqlite-order_by-rand
Fix order_by() random for pdo/sqlite driver
-rw-r--r--system/database/drivers/pdo/subdrivers/pdo_sqlite_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/pdo/subdrivers/pdo_sqlite_driver.php b/system/database/drivers/pdo/subdrivers/pdo_sqlite_driver.php
index 62690139c..cb06c2a9d 100644
--- a/system/database/drivers/pdo/subdrivers/pdo_sqlite_driver.php
+++ b/system/database/drivers/pdo/subdrivers/pdo_sqlite_driver.php
@@ -66,7 +66,7 @@ class CI_DB_pdo_sqlite_driver extends CI_DB_pdo_driver {
*
* @var array
*/
- protected $_random_keyword = ' RANDOM()';
+ protected $_random_keyword = array('RANDOM()', 'RANDOM()');
// --------------------------------------------------------------------