diff options
author | Andrey Andreev <narf@devilix.net> | 2016-12-12 10:29:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-12 10:29:04 +0100 |
commit | d06baa7e45cd04bd2d98ef3f950c8abdd65168ec (patch) | |
tree | 043bfa1125201855bb3b92c96d5b92daa0f4f150 | |
parent | b2eca2b79fc619e504d2af4ac7b081bdf497d130 (diff) | |
parent | 4827811fd1e26bf33ca396eaf273cb2b4190ff38 (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.php | 2 |
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()'); // -------------------------------------------------------------------- |