1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-25 04:24:31 +02:00

[ticket/10016] Fixed varchar to decimal cast on postgresql 7.x.

PHPBB3-10016
This commit is contained in:
Oleg Pudeyev
2011-01-28 21:06:49 -05:00
parent 9dfb059e2e
commit 56c202127c

View File

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