Plugin Directory

Changeset 436142


Ignore:
Timestamp:
09/10/2011 10:14:28 PM (15 years ago)
Author:
hawk__
Message:

Forgot to remove debugging code in previous commit ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postgresql-for-wordpress/trunk/pg4wp/driver_pgsql.php

    r436140 r436142  
    146146                // Here we need to convert the latest query into a COUNT query
    147147                $sql = $GLOBALS['pg4wp_numrows_query'];
    148                 echo '<pre>'.$sql.'</pre>';
    149148                // Remove any LIMIT ... clause (this is the blocking part)
    150149                $pattern = '/\s+LIMIT.+/';
    151150                $sql = preg_replace( $pattern, '', $sql);
    152                 echo '<pre>'.$sql.'</pre>';
    153151                // Now add the COUNT() statement
    154152                $pattern = '/SELECT\s+([^\s]+)\s+(FROM.+)/';
    155153                $sql = preg_replace( $pattern, 'SELECT COUNT($1) $2', $sql);
    156                 echo '<pre>'.$sql.'</pre>';
    157154            }
    158155           
Note: See TracChangeset for help on using the changeset viewer.