3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
|
if( db_step(&q2)==SQLITE_ROW ){
v = db_column_int(&q2, 0);
}
db_reset(&q2);
}
return v;
}
void db_set_int(const char *zName, int value, int globalFlag){
db_assert_protection_off_or_not_sensitive(zName);
db_unprotect(PROTECT_CONFIG);
if( globalFlag ){
db_swap_connections();
db_multi_exec("REPLACE INTO global_config(name,value) VALUES(%Q,%d)",
zName, value);
|
>
>
>
>
|
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
|
if( db_step(&q2)==SQLITE_ROW ){
v = db_column_int(&q2, 0);
}
db_reset(&q2);
}
return v;
}
i64 db_large_file_size(void){
/* Return size of the largest file that is not considered oversized */
return strtoll(db_get("large-file-size","20000000"),0,0);
}
void db_set_int(const char *zName, int value, int globalFlag){
db_assert_protection_off_or_not_sensitive(zName);
db_unprotect(PROTECT_CONFIG);
if( globalFlag ){
db_swap_connections();
db_multi_exec("REPLACE INTO global_config(name,value) VALUES(%Q,%d)",
zName, value);
|
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
|
/*
** SETTING: web-browser width=30 sensitive
** A shell command used to launch your preferred
** web browser when given a URL as an argument.
** Defaults to "start" on windows, "open" on Mac,
** and "firefox" on Unix.
*/
/*
** Look up a control setting by its name. Return a pointer to the Setting
** object, or NULL if there is no such setting.
**
** If allowPrefix is true, then the Setting returned is the first one for
** which zName is a prefix of the Setting name.
|
>
>
>
>
>
>
>
|
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
|
/*
** SETTING: web-browser width=30 sensitive
** A shell command used to launch your preferred
** web browser when given a URL as an argument.
** Defaults to "start" on windows, "open" on Mac,
** and "firefox" on Unix.
*/
/*
** SETTING: large-file-size width=10 default=200000000
** Fossil considers any file whose size is greater than this value
** to be a "large file". Fossil might issue warnings if you try to
** "add" or "commit" a "large file". Set this value to 0 or less
** to disable all such warnings.
*/
/*
** Look up a control setting by its name. Return a pointer to the Setting
** object, or NULL if there is no such setting.
**
** If allowPrefix is true, then the Setting returned is the first one for
** which zName is a prefix of the Setting name.
|