commit | 98e46cf96447a2a6448d8dc984948a8694dbf747 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@bofh.bg> | Tue Nov 13 03:01:42 2012 +0200 |
committer | Andrey Andreev <narf@bofh.bg> | Tue Nov 13 03:01:42 2012 +0200 |
tree | 360accab5158416e6672224b8762052d5398d7e1 | |
parent | 9e94576e62e9edb5634cb3f4d278038069bb70a8 [diff] [blame] |
Add seed values support for Query Builder order_by (feature request #1987)
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index dfaf0e0..4fcb6c6 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php
@@ -329,9 +329,9 @@ /** * ORDER BY random keyword * - * @var string + * @var array */ - protected $_random_keyword = ' RAND()'; + protected $_random_keyword = array('RAND()', 'RAND(%d)'); /** * COUNT string