aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2011-03-05 22:48:24 +0100
committerAndreas Fischer <bantu@phpbb.com>2011-03-05 22:48:24 +0100
commit841061426ded7100624496a915e8669d81d197c9 (patch)
tree1165229d0626101e775432aba0a696f86bc658e2 /phpBB/includes
parent56c202127c1eb66029c461c946a36ba1a0158474 (diff)
downloadforums-841061426ded7100624496a915e8669d81d197c9.tar
forums-841061426ded7100624496a915e8669d81d197c9.tar.gz
forums-841061426ded7100624496a915e8669d81d197c9.tar.bz2
forums-841061426ded7100624496a915e8669d81d197c9.tar.xz
forums-841061426ded7100624496a915e8669d81d197c9.zip
[ticket/10016] Leave Firebird unchanged.
PHPBB3-10016
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 7632d8790d..ef71a4e7fd 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -175,6 +175,9 @@ function set_config_count($config_name, $increment, $is_dynamic = false)
switch ($db->sql_layer)
{
case 'firebird':
+ $sql_update = 'CAST(CAST(config_value as DECIMAL(255, 0)) + ' . (int) $increment . ' as VARCHAR(255))';
+ break;
+
case 'postgres':
$sql_update = 'CAST(CAST(config_value::text as DECIMAL(255, 0)) + ' . (int) $increment . ' as VARCHAR(255))';
break;