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:
@ -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
|
||||
|
Reference in New Issue
Block a user