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:
11
src/main.c
11
src/main.c
@@ -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;
|
||||
|
Reference in New Issue
Block a user