mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/10016] Fixed varchar to decimal cast on postgresql 7.x.
PHPBB3-10016
This commit is contained in:
parent
9dfb059e2e
commit
56c202127c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue