From 6cd6166949a22534c63119c60dd6ff9ca679c84b Mon Sep 17 00:00:00 2001
From: "Committo,Ergo:sum" <esj@rezo.net>
Date: Wed, 25 Aug 2010 10:02:52 +0000
Subject: [PATCH] =?UTF-8?q?PG-like=20is=20not=20like=20MySQL-like=20rep?=
 =?UTF-8?q?=C3=B4rt=20de=20[15973]=20(M.=20Moy)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ecrire/req/pg.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ecrire/req/pg.php b/ecrire/req/pg.php
index 0ec1c40356..a3b256009e 100644
--- a/ecrire/req/pg.php
+++ b/ecrire/req/pg.php
@@ -601,7 +601,7 @@ function spip_pg_frommysql($arg)
 # correct en theorie mais produit des debordements arithmetiques
 #	$res = preg_replace("/(EXTRACT[(][^ ]* FROM *)(timestamp *'[^']*' *[+-] *timestamp *'[^']*') *[)]/", '\2', $res);
 	$res = preg_replace("/(EXTRACT[(][^ ]* FROM *)('[^']*')/", '\1 timestamp \2', $res);
-
+	$res = preg_replace("/\sLIKE\s+/", ' ILIKE ', $res);
 	return str_replace('REGEXP', '~', $res);
 }
 
-- 
GitLab