From 95d3ee9db3522355dd59eb5dd2c7c9e9ed005ba6 Mon Sep 17 00:00:00 2001 From: hawk__ Date: Thu, 11 Aug 2011 08:10:29 +0000 Subject: [PATCH] Fixed category listing git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@422045 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- pg4wp/driver_pgsql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pg4wp/driver_pgsql.php b/pg4wp/driver_pgsql.php index e90e41d..7559985 100644 --- a/pg4wp/driver_pgsql.php +++ b/pg4wp/driver_pgsql.php @@ -173,7 +173,7 @@ $pattern = '/ (?prefix.'posts."ID"', '' , $sql); + $sql = str_replace('GROUP BY '.$wpdb->prefix.'posts.ID', '' , $sql); $sql = str_replace("!= ''", '<> 0', $sql); // MySQL 'LIKE' is case insensitive by default, whereas PostgreSQL 'LIKE' is