mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/10016] Add comment for text casting (for PostgreSQL 7.x)
PHPBB3-10016
This commit is contained in:
parent
841061426d
commit
9cdeb51a52
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue