aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2011-03-05 22:55:58 +0100
committerAndreas Fischer <bantu@phpbb.com>2011-03-05 22:55:58 +0100
commit9cdeb51a5287844be1cd8671284d625d41e9b2fa (patch)
tree4192d6cd9c4151cdb86d69e91b6d4cadad25bf64 /phpBB/includes/functions.php
parent841061426ded7100624496a915e8669d81d197c9 (diff)
downloadforums-9cdeb51a5287844be1cd8671284d625d41e9b2fa.tar
forums-9cdeb51a5287844be1cd8671284d625d41e9b2fa.tar.gz
forums-9cdeb51a5287844be1cd8671284d625d41e9b2fa.tar.bz2
forums-9cdeb51a5287844be1cd8671284d625d41e9b2fa.tar.xz
forums-9cdeb51a5287844be1cd8671284d625d41e9b2fa.zip
[ticket/10016] Add comment for text casting (for PostgreSQL 7.x)
PHPBB3-10016
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index ef71a4e7fd..fb90ee5f50 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -179,6 +179,7 @@ function set_config_count($config_name, $increment, $is_dynamic = false)
break;
case 'postgres':
+ // Need to cast to text first for PostgreSQL 7.x
$sql_update = 'CAST(CAST(config_value::text as DECIMAL(255, 0)) + ' . (int) $increment . ' as VARCHAR(255))';
break;