1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Omit the --query-invariants processing in fuzzcheck for queries that contain

the implies_nonnull_row() test function.

FossilOrigin-Name: 0602a0844893465ac2fe53c0fa648a5cbcbc6452fff6181c42fab517f047b583
This commit is contained in:
drh
2022-06-17 17:11:51 +00:00
parent f26e45139e
commit c2beb0d8f6
3 changed files with 20 additions and 11 deletions

View File

@ -901,6 +901,7 @@ static int block_troublesome_sql(
"current_timestamp",
"date",
"datetime",
"implies_nonnull_row",
"julianday",
"random",
"randomblob",
@ -909,13 +910,21 @@ static int block_troublesome_sql(
"time",
"unixepoch",
};
int i;
for(i=0; i<sizeof(azBadFuncs)/sizeof(azBadFuncs[0]); i++){
if( sqlite3_stricmp(azBadFuncs[i], zArg2)==0 ){
int first, last;
first = 0;
last = sizeof(azBadFuncs)/sizeof(azBadFuncs[0]) - 1;
do{
int mid = (first+last)/2;
int c = sqlite3_stricmp(azBadFuncs[mid], zArg2);
if( c<0 ){
first = mid+1;
}else if( c>0 ){
last = mid-1;
}else{
*pFlags |= BTS_BADFUNC;
break;
}
}
}while( first<=last );
break;
}
case SQLITE_READ: {