summaryrefslogtreecommitdiffstats
path: root/system/database/DB_driver.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-11-13 02:01:42 +0100
committerAndrey Andreev <narf@bofh.bg>2012-11-13 02:01:42 +0100
commit98e46cf96447a2a6448d8dc984948a8694dbf747 (patch)
tree360accab5158416e6672224b8762052d5398d7e1 /system/database/DB_driver.php
parent9e94576e62e9edb5634cb3f4d278038069bb70a8 (diff)
Add seed values support for Query Builder order_by
(feature request #1987)
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 dfaf0e0c1..4fcb6c63c 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -329,9 +329,9 @@ abstract class CI_DB_driver {
/**
* ORDER BY random keyword
*
- * @var string
+ * @var array
*/
- protected $_random_keyword = ' RAND()';
+ protected $_random_keyword = array('RAND()', 'RAND(%d)');
/**
* COUNT string