mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00: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
2 changed files with 2 additions and 2 deletions
|
@ -151,7 +151,7 @@ class dbal_mysql4 extends dbal
|
||||||
if ($total == 0)
|
if ($total == 0)
|
||||||
{
|
{
|
||||||
// Because MySQL 4.1+ no longer supports -1 in LIMIT queries we set it to the maximum value
|
// 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);
|
$query .= "\n LIMIT " . ((!empty($offset)) ? $offset . ', ' . $total : $total);
|
||||||
|
|
|
@ -147,7 +147,7 @@ class dbal_mysqli extends dbal
|
||||||
if ($total == 0)
|
if ($total == 0)
|
||||||
{
|
{
|
||||||
// MySQL 4.1+ no longer supports -1 in limit queries
|
// MySQL 4.1+ no longer supports -1 in limit queries
|
||||||
$total = 18446744073709551615;
|
$total = '18446744073709551615';
|
||||||
}
|
}
|
||||||
|
|
||||||
$query .= "\n LIMIT " . ((!empty($offset)) ? $offset . ', ' . $total : $total);
|
$query .= "\n LIMIT " . ((!empty($offset)) ? $offset . ', ' . $total : $total);
|
||||||
|
|
Loading…
Add table
Reference in a new issue