mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 06:51:08 +02:00
change total from -1 to max value
git-svn-id: file:///svn/phpbb/trunk@5311 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -147,7 +147,8 @@ class dbal_mysql4 extends dbal
|
|||||||
// if $total is set to 0 we do not want to limit the number of rows
|
// if $total is set to 0 we do not want to limit the number of rows
|
||||||
if ($total == 0)
|
if ($total == 0)
|
||||||
{
|
{
|
||||||
$total = -1;
|
// Because MySQL 4.1+ no longer supports -1 in LIMIT queries we set it to the maximum value
|
||||||
|
$total = 18446744073709551615;
|
||||||
}
|
}
|
||||||
|
|
||||||
$query .= "\n LIMIT " . ((!empty($offset)) ? $offset . ', ' . $total : $total);
|
$query .= "\n LIMIT " . ((!empty($offset)) ? $offset . ', ' . $total : $total);
|
||||||
|
@@ -145,7 +145,8 @@ class dbal_mysqli extends dbal
|
|||||||
// if $total is set to 0 we do not want to limit the number of rows
|
// if $total is set to 0 we do not want to limit the number of rows
|
||||||
if ($total == 0)
|
if ($total == 0)
|
||||||
{
|
{
|
||||||
$total = -1;
|
// MySQL 4.1+ no longer supports -1 in limit queries
|
||||||
|
$total = 18446744073709551615;
|
||||||
}
|
}
|
||||||
|
|
||||||
$query .= "\n LIMIT " . ((!empty($offset)) ? $offset . ', ' . $total : $total);
|
$query .= "\n LIMIT " . ((!empty($offset)) ? $offset . ', ' . $total : $total);
|
||||||
|
Reference in New Issue
Block a user