mirror of
https://github.com/PostgreSQL-For-Wordpress/postgresql-for-wordpress.git
synced 2025-07-29 17:27:13 +02:00
Fixed category listing
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@422045 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
@ -173,7 +173,7 @@
|
||||
$pattern = '/ (?<!NULL)IF[ ]*\(([^,]+),([^,]+),([^\)]+)\)/';
|
||||
$sql = preg_replace( $pattern, ' CASE WHEN $1 THEN $2 ELSE $3 END', $sql);
|
||||
|
||||
$sql = str_replace('GROUP BY '.$wpdb->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
|
||||
|
Reference in New Issue
Block a user