From b292bc7a6cf78f58ccff95cba03038069baeb882 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 1 Feb 2010 16:19:16 +0000 Subject: [PATCH] postgres requires separate 'offset' aside from 'limit' --- ext/alias_editor/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/alias_editor/main.php b/ext/alias_editor/main.php index 9916c713..831c5f89 100644 --- a/ext/alias_editor/main.php +++ b/ext/alias_editor/main.php @@ -71,7 +71,7 @@ class AliasEditor implements Extension { $alias_per_page = $config->get_int('alias_items_per_page', 30); $alias = $database->db->GetAssoc( - "SELECT oldtag, newtag FROM aliases ORDER BY newtag ASC LIMIT ?, ?", + "SELECT oldtag, newtag FROM aliases ORDER BY newtag ASC OFFSET ? LIMIT ?", array($page_number * $alias_per_page, $alias_per_page) );