Re: [sqlite] Random Syntax changed in 3.6.11?

2009-03-02 Thread Alberto Simões
Hello, DRH, On Mon, Mar 2, 2009 at 6:32 PM, D. Richard Hipp wrote: > The RANDOM() function takes zero arguments.  This has always been the > case.  But 3.6.11 has begun to enforce that rule.  Prior to 3.6.11, > the error was ignored. Oh. That explains it. Thanks -- Alberto Simões _

Re: [sqlite] Random Syntax changed in 3.6.11?

2009-03-02 Thread Martin Engelschalk
Hi, in http://www.sqlite.org/lang_corefunc.html the random() function is documented as taking no arguments, So, use SELECT word FROM dict ORDER BY RANDOM() LIMIT 1; I tried an older version of sqlite (can't say which, but 3.*), and could call random() with 0, 1, 2, 3 and 4 parameters. I would b

Re: [sqlite] Random Syntax changed in 3.6.11?

2009-03-02 Thread D. Richard Hipp
On Mar 2, 2009, at 1:16 PM, Alberto Simões wrote: > Hello > > I am using random as: > > SELECT word FROM dict ORDER BY RANDOM(term) LIMIT 1; > > And I am getting: > > DBD::SQLite::db prepare failed: wrong number of arguments to function > RANDOM()(1) at dbdimp.c line 271 at OpenDict.pm line 64. >

[sqlite] Random Syntax changed in 3.6.11?

2009-03-02 Thread Alberto Simões
Hello I am using random as: SELECT word FROM dict ORDER BY RANDOM(term) LIMIT 1; And I am getting: DBD::SQLite::db prepare failed: wrong number of arguments to function RANDOM()(1) at dbdimp.c line 271 at OpenDict.pm line 64. (yes, using it through DBD::SQLite, but I do not think that is the p