sqlite problem in serendipity_event_entrypaging

Found a bug? Tell us!!
Post Reply
costa
Regular
Posts: 110
Joined: Wed Feb 08, 2006 5:29 pm
Location: Poland
Contact:

sqlite problem in serendipity_event_entrypaging

Post by costa »

latest version downloaded and installed, problem occurs when showing random entry function is enabled. this is what i got:

Code: Select all

Warning: sqlite_query(): no such function: RAND in /_my_path_/include/db/sqlite.inc.php on line 229
bool(false) string(394) "SELECT e.id, e.title, e.timestamp FROM serendipity_entries e WHERE e.id <> 595 AND e.isdraft = 'false' AND e.timestamp <= 1153854335 ORDER BY RAND() LIMIT 1"
ok garv, no more private e-mails with bugs. we go into public with problems :)
"everything is under control" - kasparov demo
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: sqlite problem in serendipity_event_entrypaging

Post by garvinhicking »

Hi!

Yes, sadly random entries simply don't work with SQLite. :-(

There's no way to get "random" data using SQLite. You would need to fetch ALL data frmo the table and then randomize it with PHP. You wouldn't want that. ;)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply