diff options
Diffstat (limited to 'phpBB/includes/functions.php')
| -rw-r--r-- | phpBB/includes/functions.php | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index c88e434b4b..36f5093e1f 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -175,11 +175,8 @@ function set_config_count($config_name, $increment, $is_dynamic = false)  	switch ($db->sql_layer)  	{  		case 'firebird': -			$sql_update = 'CAST(CAST(config_value as integer) + ' . (int) $increment . ' as VARCHAR(255))'; -		break; -  		case 'postgres': -			$sql_update = 'int4(config_value) + ' . (int) $increment; +			$sql_update = 'CAST(CAST(config_value as DECIMAL(255, 0)) + ' . (int) $increment . ' as VARCHAR(255))';  		break;  		// MySQL, SQlite, mssql, mssql_odbc, oracle | 
