From 1fae177b9a424db90c33d9cde373d360ebeac878 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Mon, 30 Mar 2009 10:44:18 +0000 Subject: Fix bug in postgresql db layer for LIMIT ALL clauses (reported by JRSweets) git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9412 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/db/postgres.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'phpBB/includes/db/postgres.php') diff --git a/phpBB/includes/db/postgres.php b/phpBB/includes/db/postgres.php index 83678e2904..d117e8c948 100644 --- a/phpBB/includes/db/postgres.php +++ b/phpBB/includes/db/postgres.php @@ -26,7 +26,7 @@ include_once($phpbb_root_path . 'includes/db/dbal.' . $phpEx); class dbal_postgres extends dbal { var $last_query_text = ''; - + /** * Connect to server */ @@ -55,7 +55,7 @@ class dbal_postgres extends dbal { $connect_string .= "host=$sqlserver "; } - + if ($port) { $connect_string .= "port=$port "; @@ -224,7 +224,7 @@ class dbal_postgres extends 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"; -- cgit v1.2.1