Plugin Directory

Changeset 542085


Ignore:
Timestamp:
05/09/2012 09:33:33 PM (14 years ago)
Author:
hawk__
Message:

Added a modifier for COUNT(.+)...ORDER BY... to be handled correctly even when ther is a newline character

File:
1 edited

Legend:

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

    r542064 r542085  
    206206           
    207207            // Handle COUNT(*)...ORDER BY...
    208             $sql = preg_replace( '/COUNT(.+)ORDER BY.+/', 'COUNT$1', $sql);
     208            $sql = preg_replace( '/COUNT(.+)ORDER BY.+/s', 'COUNT$1', $sql);
    209209           
    210210            // In order for users counting to work...
Note: See TracChangeset for help on using the changeset viewer.