diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2011-05-13 19:32:35 -0400 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2011-05-13 19:32:35 -0400 |
commit | 5e81b058cf703e28fff6686cc6f8d9770b740a37 (patch) | |
tree | 0a5c4ec5f234313cbc639da9e5e47e615b6dc91f /phpBB | |
parent | 46110d8cef5b6eb91793b680bec7bb9550abd69f (diff) | |
parent | 9cb6a69861b2ef1ca9a23ffe773ca3be4f9e4461 (diff) | |
download | forums-5e81b058cf703e28fff6686cc6f8d9770b740a37.tar forums-5e81b058cf703e28fff6686cc6f8d9770b740a37.tar.gz forums-5e81b058cf703e28fff6686cc6f8d9770b740a37.tar.bz2 forums-5e81b058cf703e28fff6686cc6f8d9770b740a37.tar.xz forums-5e81b058cf703e28fff6686cc6f8d9770b740a37.zip |
Merge remote-tracking branch 'bantu/ticket/10146' into develop-olympus
* bantu/ticket/10146:
[ticket/10146] Firebird: 1 <= precision <= 18 ==> Cast to DECIMAL(18, 0).
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/functions.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index b8ea80ad4a..ceaf426850 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -175,7 +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 DECIMAL(255, 0)) + ' . (int) $increment . ' as VARCHAR(255))'; + // Precision must be from 1 to 18 + $sql_update = 'CAST(CAST(config_value as DECIMAL(18, 0)) + ' . (int) $increment . ' as VARCHAR(255))'; break; case 'postgres': |