1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Add SQLITE_CONFIG_SORTERREF_SIZE configuration option.

FossilOrigin-Name: b25a7bb769b8397a00736bd922bd24b1200b2f82d36d42ecb4c3eb17efb4b84d
This commit is contained in:
dan
2018-04-16 21:12:42 +00:00
parent 24e25d32ce
commit 2e3a5a810a
10 changed files with 116 additions and 33 deletions

View File

@@ -642,6 +642,17 @@ int sqlite3_config(int op, ...){
break;
}
case SQLITE_CONFIG_SORTERREF_SIZE: {
#ifdef SQLITE_ENABLE_SORTER_REFERENCES
int iVal = va_arg(ap, int);
if( iVal<0 ){
iVal = SQLITE_DEFAULT_SORTERREF_SIZE;
}
sqlite3GlobalConfig.szSorterRef = (u32)iVal;
#endif /* SQLITE_ENABLE_SORTER_REFERENCES */
break;
}
default: {
rc = SQLITE_ERROR;
break;