aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2011-01-28 21:06:49 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2011-01-28 21:06:49 -0500
commit56c202127c1eb66029c461c946a36ba1a0158474 (patch)
tree1c1ee6d24b6cc3d588e8b7a43843b511b9734383 /phpBB
parent9dfb059e2ebd7413051a05687b08d7af886ab885 (diff)
downloadforums-56c202127c1eb66029c461c946a36ba1a0158474.tar
forums-56c202127c1eb66029c461c946a36ba1a0158474.tar.gz
forums-56c202127c1eb66029c461c946a36ba1a0158474.tar.bz2
forums-56c202127c1eb66029c461c946a36ba1a0158474.tar.xz
forums-56c202127c1eb66029c461c946a36ba1a0158474.zip
[ticket/10016] Fixed varchar to decimal cast on postgresql 7.x.
PHPBB3-10016
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 9a8cc5d6b3..7632d8790d 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -176,7 +176,7 @@ function set_config_count($config_name, $increment, $is_dynamic = false)
{
case 'firebird':
case 'postgres':
- $sql_update = 'CAST(CAST(config_value 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;
// MySQL, SQlite, mssql, mssql_odbc, oracle