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;