aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2018-11-26 21:19:42 +0100
committerMarc Alexander <admin@m-a-styles.de>2018-11-26 21:19:42 +0100
commitdb7f4d4c9523e5dc36c62ec6fe647aaf7708daaa (patch)
treec708a8cd1d414ba1dcf1afab290a721ed4735031
parentb8bdccbc4431af37a0a894ad29907699402605de (diff)
parentdc96e70d1ba531fc5975aef3e7e2d7d9e9203a6d (diff)
downloadforums-db7f4d4c9523e5dc36c62ec6fe647aaf7708daaa.tar
forums-db7f4d4c9523e5dc36c62ec6fe647aaf7708daaa.tar.gz
forums-db7f4d4c9523e5dc36c62ec6fe647aaf7708daaa.tar.bz2
forums-db7f4d4c9523e5dc36c62ec6fe647aaf7708daaa.tar.xz
forums-db7f4d4c9523e5dc36c62ec6fe647aaf7708daaa.zip
Merge pull request #5450 from hubaishan/ticket/15665
[ticket/15665] Fix MSSQL crashes if upload dir>2GB
-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..98d16ca7fc 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
*/