diff options
author | Andreas Fischer <bantu@phpbb.com> | 2011-03-05 22:48:24 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2011-03-05 22:48:24 +0100 |
commit | 841061426ded7100624496a915e8669d81d197c9 (patch) | |
tree | 1165229d0626101e775432aba0a696f86bc658e2 /phpBB/includes | |
parent | 56c202127c1eb66029c461c946a36ba1a0158474 (diff) | |
download | forums-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.php | 3 |
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; |