mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-24 18:41:52 +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 'firebird':
|
||||||
case 'postgres':
|
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;
|
break;
|
||||||
|
|
||||||
// MySQL, SQlite, mssql, mssql_odbc, oracle
|
// MySQL, SQlite, mssql, mssql_odbc, oracle
|
||||||
|
Reference in New Issue
Block a user