mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-23 03:19:01 +01: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:
parent
cfb03db151
commit
89c88ba944
@ -151,7 +151,7 @@ class dbal_mysql4 extends dbal
|
||||
if ($total == 0)
|
||||
{
|
||||
// Because MySQL 4.1+ no longer supports -1 in LIMIT queries we set it to the maximum value
|
||||
$total = 18446744073709551615;
|
||||
$total = '18446744073709551615';
|
||||
}
|
||||
|
||||
$query .= "\n LIMIT " . ((!empty($offset)) ? $offset . ', ' . $total : $total);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user