mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 14:48:53 +00:00
[ticket/10016] Leave Firebird unchanged.
PHPBB3-10016
This commit is contained in:
parent
56c202127c
commit
841061426d
1 changed files with 3 additions and 0 deletions
|
@ -175,6 +175,9 @@ function set_config_count($config_name, $increment, $is_dynamic = false)
|
||||||
switch ($db->sql_layer)
|
switch ($db->sql_layer)
|
||||||
{
|
{
|
||||||
case 'firebird':
|
case 'firebird':
|
||||||
|
$sql_update = 'CAST(CAST(config_value as DECIMAL(255, 0)) + ' . (int) $increment . ' as VARCHAR(255))';
|
||||||
|
break;
|
||||||
|
|
||||||
case 'postgres':
|
case 'postgres':
|
||||||
$sql_update = 'CAST(CAST(config_value::text as DECIMAL(255, 0)) + ' . (int) $increment . ' as VARCHAR(255))';
|
$sql_update = 'CAST(CAST(config_value::text as DECIMAL(255, 0)) + ' . (int) $increment . ' as VARCHAR(255))';
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue