diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2009-03-30 10:44:18 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2009-03-30 10:44:18 +0000 |
commit | 1fae177b9a424db90c33d9cde373d360ebeac878 (patch) | |
tree | 939c3e793570d421a96d65edaf6e17d5a720907f /phpBB/includes/db/postgres.php | |
parent | e6ed42ed4dde41812b88b47c6e5bb5c41402f14c (diff) | |
download | forums-1fae177b9a424db90c33d9cde373d360ebeac878.tar forums-1fae177b9a424db90c33d9cde373d360ebeac878.tar.gz forums-1fae177b9a424db90c33d9cde373d360ebeac878.tar.bz2 forums-1fae177b9a424db90c33d9cde373d360ebeac878.tar.xz forums-1fae177b9a424db90c33d9cde373d360ebeac878.zip |
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
Diffstat (limited to 'phpBB/includes/db/postgres.php')
-rw-r--r-- | phpBB/includes/db/postgres.php | 6 |
1 files changed, 3 insertions, 3 deletions
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"; |