When compiled with SQLITE_ALLOW_ROWID_IN_VIEW, rowid-in-view is on by default
but can now be turned off using SQLITE_TESTCTRL_ROWID_IN_VIEW. Without the compile-time option, rowid-in-view is always off. FossilOrigin-Name: 8a6196ab29052071be753c5c77ac945c2d62ecc8019c6160f954eafe34ab05a8
This commit is contained in:
@@ -10893,6 +10893,7 @@ static int do_meta_command(char *zLine, ShellState *p){
|
||||
{"prng_restore", SQLITE_TESTCTRL_PRNG_RESTORE,0, "" },
|
||||
{"prng_save", SQLITE_TESTCTRL_PRNG_SAVE, 0, "" },
|
||||
{"prng_seed", SQLITE_TESTCTRL_PRNG_SEED, 0, "SEED ?db?" },
|
||||
{"rowid_in_view", SQLITE_TESTCTRL_ROWID_IN_VIEW,0,"?BOOLEAN?" },
|
||||
{"seek_count", SQLITE_TESTCTRL_SEEK_COUNT, 0, "" },
|
||||
{"sorter_mmap", SQLITE_TESTCTRL_SORTER_MMAP, 0, "NMAX" },
|
||||
{"tune", SQLITE_TESTCTRL_TUNE, 1, "ID VALUE" },
|
||||
@@ -11067,6 +11068,20 @@ static int do_meta_command(char *zLine, ShellState *p){
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
case SQLITE_TESTCTRL_ROWID_IN_VIEW: {
|
||||
rc2 = -1;
|
||||
if( nArg>=3 ){
|
||||
if( !ShellHasFlag(p,SHFLG_TestingMode) ){
|
||||
eputz("The --unsafe-testing option is required to change "
|
||||
"this setting\n");
|
||||
}else{
|
||||
rc2 = booleanValue(azArg[2]);
|
||||
}
|
||||
}
|
||||
sqlite3_test_control(testctrl, &rc2);
|
||||
isOk = 1;
|
||||
break;
|
||||
}
|
||||
#ifdef SQLITE_DEBUG
|
||||
case SQLITE_TESTCTRL_TUNE: {
|
||||
if( nArg==4 ){
|
||||
|
||||
Reference in New Issue
Block a user