mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
- 18446744073709551615 becomes a float. This causes MySQL to read it as 1. Having it as a string works better.
git-svn-id: file:///svn/phpbb/trunk@5413 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -147,7 +147,7 @@ class dbal_mysqli extends dbal
|
||||
if ($total == 0)
|
||||
{
|
||||
// MySQL 4.1+ no longer supports -1 in limit queries
|
||||
$total = 18446744073709551615;
|
||||
$total = '18446744073709551615';
|
||||
}
|
||||
|
||||
$query .= "\n LIMIT " . ((!empty($offset)) ? $offset . ', ' . $total : $total);
|
||||
|
Reference in New Issue
Block a user