diff options
author | David M <davidmj@users.sourceforge.net> | 2006-01-01 21:23:33 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2006-01-01 21:23:33 +0000 |
commit | 89c88ba9446511b0f507c2f6512c2cb5aaa5aea4 (patch) | |
tree | da3e6d19cd3f5d85a7e17b816a02ac64d3252996 | |
parent | cfb03db15130f7b67b0bceb3109cac1b7708bbfc (diff) | |
download | forums-89c88ba9446511b0f507c2f6512c2cb5aaa5aea4.tar forums-89c88ba9446511b0f507c2f6512c2cb5aaa5aea4.tar.gz forums-89c88ba9446511b0f507c2f6512c2cb5aaa5aea4.tar.bz2 forums-89c88ba9446511b0f507c2f6512c2cb5aaa5aea4.tar.xz forums-89c88ba9446511b0f507c2f6512c2cb5aaa5aea4.zip |
- 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
-rw-r--r-- | phpBB/includes/db/mysql4.php | 2 | ||||
-rw-r--r-- | phpBB/includes/db/mysqli.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/db/mysql4.php b/phpBB/includes/db/mysql4.php index 3df2c0ad0d..143996a028 100644 --- a/phpBB/includes/db/mysql4.php +++ b/phpBB/includes/db/mysql4.php @@ -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); diff --git a/phpBB/includes/db/mysqli.php b/phpBB/includes/db/mysqli.php index 82ee6ecf21..201d6af1e7 100644 --- a/phpBB/includes/db/mysqli.php +++ b/phpBB/includes/db/mysqli.php @@ -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); |