[ticket/10016] Add comment for text casting (for PostgreSQL 7.x)

PHPBB3-10016
This commit is contained in:
Andreas Fischer 2011-03-05 22:55:58 +01:00
parent 841061426d
commit 9cdeb51a52

View file

@ -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;