1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Adjust fuzzershell so that it adds the json1 extension separately for each

no connection.

FossilOrigin-Name: ca2d1e9036387d1514fe596a0b82a3d8409797c3
This commit is contained in:
drh
2015-09-19 14:57:00 +00:00
parent d7f2beab86
commit 5f4a44a439
3 changed files with 13 additions and 14 deletions

View File

@ -601,13 +601,6 @@ int main(int argc, char **argv){
zIn = malloc(nAlloc);
if( zIn==0 ) fatalError("out of memory");
#ifdef SQLITE_ENABLE_JSON1
{
extern int sqlite3_json_init(sqlite3*);
sqlite3_auto_extension((void(*)(void))sqlite3_json_init);
}
#endif
/* Loop over all input files */
for(jj=0; jj<nInFile; jj++){
@ -727,6 +720,12 @@ int main(int argc, char **argv){
#ifndef SQLITE_OMIT_TRACE
sqlite3_trace(db, verboseFlag ? traceCallback : traceNoop, 0);
#endif
#ifdef SQLITE_ENABLE_JSON1
{
extern int sqlite3_json_init(sqlite3*);
sqlite3_json_init(db);
}
#endif
sqlite3_create_function(db, "eval", 1, SQLITE_UTF8, 0, sqlEvalFunc, 0, 0);
sqlite3_create_function(db, "eval", 2, SQLITE_UTF8, 0, sqlEvalFunc, 0, 0);
sqlite3_limit(db, SQLITE_LIMIT_LENGTH, 1000000);