aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2011-04-22 11:01:07 +0200
committerAndreas Fischer <bantu@phpbb.com>2011-04-22 11:01:07 +0200
commit9cb6a69861b2ef1ca9a23ffe773ca3be4f9e4461 (patch)
treeeebadc8599a37b1cd430aa8cf427cd5fc0e9bb32 /phpBB/includes/functions.php
parent32bc980ca06b67789d8fd86e4c3a5c897a6de23f (diff)
downloadforums-9cb6a69861b2ef1ca9a23ffe773ca3be4f9e4461.tar
forums-9cb6a69861b2ef1ca9a23ffe773ca3be4f9e4461.tar.gz
forums-9cb6a69861b2ef1ca9a23ffe773ca3be4f9e4461.tar.bz2
forums-9cb6a69861b2ef1ca9a23ffe773ca3be4f9e4461.tar.xz
forums-9cb6a69861b2ef1ca9a23ffe773ca3be4f9e4461.zip
[ticket/10146] Firebird: 1 <= precision <= 18 ==> Cast to DECIMAL(18, 0).
PHPBB3-10146
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 585e23b2ee..ca5a483536 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -175,7 +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 DECIMAL(255, 0)) + ' . (int) $increment . ' as VARCHAR(255))';
+ // Precision must be from 1 to 18
+ $sql_update = 'CAST(CAST(config_value as DECIMAL(18, 0)) + ' . (int) $increment . ' as VARCHAR(255))';
break;
case 'postgres':