diff options
author | Nils Adermann <naderman@naderman.de> | 2010-05-14 02:46:56 +0200 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2010-05-14 02:46:56 +0200 |
commit | 478708346e2b046ae474ffb0c2e451a2690ddd2b (patch) | |
tree | 6870582cc004a10756d2e453b3930204a8abd61b | |
parent | fa5845e8c582c903ec1ef4a78844cb6d77cd96b7 (diff) | |
parent | 032a9f58f9ce4dd9777f30a8856fb49e340df179 (diff) | |
download | forums-478708346e2b046ae474ffb0c2e451a2690ddd2b.tar forums-478708346e2b046ae474ffb0c2e451a2690ddd2b.tar.gz forums-478708346e2b046ae474ffb0c2e451a2690ddd2b.tar.bz2 forums-478708346e2b046ae474ffb0c2e451a2690ddd2b.tar.xz forums-478708346e2b046ae474ffb0c2e451a2690ddd2b.zip |
Merge branch 'ticket/bantu/9174' into develop-olympus
* ticket/bantu/9174:
[ticket/9173] No longer limit scope of numbers we store in the config table on
-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 |