From db43171837ca08eeada756aa8b8255d12fcecf70 Mon Sep 17 00:00:00 2001 From: hawk__ Date: Tue, 19 Jan 2010 20:54:19 +0000 Subject: [PATCH] Fixed a typo git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@195532 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 607d15e..9a50837 100644 --- a/pg4wp/driver_pgsql.php +++ b/pg4wp/driver_pgsql.php @@ -131,7 +131,7 @@ if( false !== strpos($sql, 'SQL_CALC_FOUND_ROWS')) { $catchnumrows = true; - $sql = str_replace('GROUP BY '.$table_prefix.'posts."ID"', '' , $sql); + $sql = str_replace('GROUP BY '.$table_prefix.'posts.ID', '' , $sql); $sql = str_replace('SQL_CALC_FOUND_ROWS', 'DISTINCT', $sql); $GLOBALS['pg4wp_numrows'] = preg_replace( '/SELECT DISTINCT.+FROM ('.$table_prefix.'posts)/', 'SELECT DISTINCT "ID" FROM $1', $sql); $GLOBALS['pg4wp_numrows'] = preg_replace( '/SELECT(.+)FROM/', 'SELECT COUNT($1) FROM', $GLOBALS['pg4wp_numrows']);