remove unncessary string replacement for != to <>

This commit is contained in:
Matthew Bucci
2024-01-16 22:17:07 -08:00
parent 23da9c0dd2
commit 0b09d08fb1
2 changed files with 21 additions and 1 deletions
-1
View File
@@ -110,7 +110,6 @@ class SelectSQLRewriter extends AbstractSQLRewriter
if(isset($wpdb)) {
$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
$sql = str_replace(' LIKE ', ' ILIKE ', $sql);