aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2011-05-11 11:32:09 +0200
committerAndreas Fischer <bantu@phpbb.com>2011-05-11 11:32:09 +0200
commitbfdb5c413deb15588c4e6d29e54cc42aae2ff5ae (patch)
treec2b9aa2a0c29cb9566cf8b54f78c4b5eef1f8bd8
parent208fc767611d32378b116d8269760b64cf455574 (diff)
downloadforums-bfdb5c413deb15588c4e6d29e54cc42aae2ff5ae.tar
forums-bfdb5c413deb15588c4e6d29e54cc42aae2ff5ae.tar.gz
forums-bfdb5c413deb15588c4e6d29e54cc42aae2ff5ae.tar.bz2
forums-bfdb5c413deb15588c4e6d29e54cc42aae2ff5ae.tar.xz
forums-bfdb5c413deb15588c4e6d29e54cc42aae2ff5ae.zip
[ticket/10146] Fix Firebird DECIMAL precision issue on develop.
PHPBB3-10146
-rw-r--r--phpBB/includes/db/firebird.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/db/firebird.php b/phpBB/includes/db/firebird.php
index 8868d4e317..8acc84b1c0 100644
--- a/phpBB/includes/db/firebird.php
+++ b/phpBB/includes/db/firebird.php
@@ -497,7 +497,8 @@ class dbal_firebird extends dbal
*/
function cast_expr_to_bigint($expression)
{
- return 'CAST(' . $expression . ' as DECIMAL(255, 0))';
+ // Precision must be from 1 to 18
+ return 'CAST(' . $expression . ' as DECIMAL(18, 0))';
}
/**