mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge branch 'ticket/bantu/9174' into develop-olympus
* ticket/bantu/9174: [ticket/9173] No longer limit scope of numbers we store in the config table on
This commit is contained in:
commit
478708346e
1 changed files with 1 additions and 4 deletions
|
@ -175,11 +175,8 @@ function set_config_count($config_name, $increment, $is_dynamic = false)
|
|||
switch ($db->sql_layer)
|
||||
{
|
||||
case 'firebird':
|
||||
$sql_update = 'CAST(CAST(config_value as integer) + ' . (int) $increment . ' as VARCHAR(255))';
|
||||
break;
|
||||
|
||||
case 'postgres':
|
||||
$sql_update = 'int4(config_value) + ' . (int) $increment;
|
||||
$sql_update = 'CAST(CAST(config_value as DECIMAL(255, 0)) + ' . (int) $increment . ' as VARCHAR(255))';
|
||||
break;
|
||||
|
||||
// MySQL, SQlite, mssql, mssql_odbc, oracle
|
||||
|
|
Loading…
Add table
Reference in a new issue