mirror of
				https://github.com/sqlite/sqlite.git
				synced 2025-10-24 09:53:10 +03:00 
			
		
		
		
	Restrict the RANDOM() function to have zero arguments. Ticket #3627. (CVS 6229)
FossilOrigin-Name: b8b546b6ed799dc1621ef7b06273249af1042fb2
This commit is contained in:
		| @@ -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      ), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user