From c9a58af60737a96f4df69f70920a7bddc175be0f Mon Sep 17 00:00:00 2001 From: hawk__ Date: Sat, 10 Sep 2011 22:14:28 +0000 Subject: [PATCH] Forgot to remove debugging code in previous commit ... git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@436142 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- pg4wp/driver_pgsql.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/pg4wp/driver_pgsql.php b/pg4wp/driver_pgsql.php index dd44991..2068f51 100644 --- a/pg4wp/driver_pgsql.php +++ b/pg4wp/driver_pgsql.php @@ -145,15 +145,12 @@ { // Here we need to convert the latest query into a COUNT query $sql = $GLOBALS['pg4wp_numrows_query']; - echo '
'.$sql.'
'; // Remove any LIMIT ... clause (this is the blocking part) $pattern = '/\s+LIMIT.+/'; $sql = preg_replace( $pattern, '', $sql); - echo '
'.$sql.'
'; // Now add the COUNT() statement $pattern = '/SELECT\s+([^\s]+)\s+(FROM.+)/'; $sql = preg_replace( $pattern, 'SELECT COUNT($1) $2', $sql); - echo '
'.$sql.'
'; } // Handle COUNT(*)...ORDER BY...