1
0
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:
David M 2006-01-01 21:23:33 +00:00
parent cfb03db151
commit 89c88ba944
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);