aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db
diff options
context:
space:
mode:
authorhubaishan <saeed@hubaishan.com>2018-11-20 13:38:15 +0300
committerhubaishan <saeed@hubaishan.com>2018-11-20 13:38:15 +0300
commit717d4840e2deef6d07944a5574348f67fd75c1fa (patch)
tree2bd424aedad8cc8d92ad511825c637823b9880b1 /phpBB/phpbb/db
parent6c5578a65b6cd357b567e81adf510e239aff40eb (diff)
downloadforums-717d4840e2deef6d07944a5574348f67fd75c1fa.tar
forums-717d4840e2deef6d07944a5574348f67fd75c1fa.tar.gz
forums-717d4840e2deef6d07944a5574348f67fd75c1fa.tar.bz2
forums-717d4840e2deef6d07944a5574348f67fd75c1fa.tar.xz
forums-717d4840e2deef6d07944a5574348f67fd75c1fa.zip
[ticket/15665] Fix MSSQL crashes if upload dir>2GB
Add cast_expr_to_bigint() to mssql_base PHPBB3-15665
Diffstat (limited to 'phpBB/phpbb/db')
-rw-r--r--phpBB/phpbb/db/driver/mssql_base.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/driver/mssql_base.php b/phpBB/phpbb/db/driver/mssql_base.php
index 514df9eaca..1f6931e83a 100644
--- a/phpBB/phpbb/db/driver/mssql_base.php
+++ b/phpBB/phpbb/db/driver/mssql_base.php
@@ -61,6 +61,14 @@ abstract class mssql_base extends \phpbb\db\driver\driver
}
/**
+ * {@inheritDoc}
+ */
+ function cast_expr_to_bigint($expression)
+ {
+ return 'CONVERT(BIGINT, ' . $expression . ')';;
+ }
+
+ /**
* Build db-specific query data
* @access private
*/