From e3d98fe77b1f2c60ceefa0ddf9091d08815d1f89 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Mon, 30 Mar 2009 10:44:52 +0000 Subject: [PATCH] fix LIMIT ALL in postgres layer git-svn-id: file:///svn/phpbb/trunk@9413 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/db/postgres.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/db/postgres.php b/phpBB/includes/db/postgres.php index 5074ce55f4..d74a8167e9 100644 --- a/phpBB/includes/db/postgres.php +++ b/phpBB/includes/db/postgres.php @@ -170,7 +170,7 @@ class phpbb_dbal_postgres extends phpbb_dbal // if $total is set to 0 we do not want to limit the number of rows if ($total == 0) { - $total = -1; + $total = 'ALL'; } $query .= "\n LIMIT $total OFFSET $offset";