aboutsummaryrefslogtreecommitdiff
path: root/src/func.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2009-02-02 01:50:39 +0000
committerdrh <drh@noemail.net>2009-02-02 01:50:39 +0000
commit9373b018829997e9412b884e4c3561a1978cd7bb (patch)
tree876510e6a860873606c93fb66294deab00ad1299 /src/func.c
parent8198d25442cb591cbe2071bfb5aa3c3eb521dc75 (diff)
downloadsqlite-9373b018829997e9412b884e4c3561a1978cd7bb.tar.gz
sqlite-9373b018829997e9412b884e4c3561a1978cd7bb.zip
Restrict the RANDOM() function to have zero arguments. Ticket #3627. (CVS 6229)
FossilOrigin-Name: b8b546b6ed799dc1621ef7b06273249af1042fb2
Diffstat (limited to 'src/func.c')
-rw-r--r--src/func.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/func.c b/src/func.c
index 6ef377491..4d4c8590f 100644
--- a/src/func.c
+++ b/src/func.c
@@ -16,7 +16,7 @@
** sqliteRegisterBuildinFunctions() found at the bottom of the file.
** All other code has file scope.
**
-** $Id: func.c,v 1.214 2009/02/01 19:42:38 drh Exp $
+** $Id: func.c,v 1.215 2009/02/02 01:50:40 drh Exp $
*/
#include "sqliteInt.h"
#include <stdlib.h>
@@ -1377,7 +1377,7 @@ void sqlite3RegisterGlobalFunctions(void){
FUNCTION(coalesce, 0, 0, 0, 0 ),
FUNCTION(hex, 1, 0, 0, hexFunc ),
FUNCTION(ifnull, 2, 0, 1, ifnullFunc ),
- FUNCTION(random, -1, 0, 0, randomFunc ),
+ FUNCTION(random, 0, 0, 0, randomFunc ),
FUNCTION(randomblob, 1, 0, 0, randomBlob ),
FUNCTION(nullif, 2, 0, 1, nullifFunc ),
FUNCTION(sqlite_version, 0, 0, 0, versionFunc ),