Skip to content

Commit db7f4d4

Browse files
committed
Merge pull request phpbb#5450 from hubaishan/ticket/15665
[ticket/15665] Fix MSSQL crashes if upload dir>2GB
2 parents b8bdccb + dc96e70 commit db7f4d4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

phpBB/phpbb/db/driver/mssql_base.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ function _sql_not_like_expression($expression)
6060
return $expression . " ESCAPE '\\'";
6161
}
6262

63+
/**
64+
* {@inheritDoc}
65+
*/
66+
function cast_expr_to_bigint($expression)
67+
{
68+
return 'CONVERT(BIGINT, ' . $expression . ')';
69+
}
70+
6371
/**
6472
* Build db-specific query data
6573
* @access private

0 commit comments

Comments
 (0)