Re: Problème WHERE

Cerdic <[email protected]>
Newsgroups gmane.comp.web.spip.devel
Message-ID <dc5506d2-fd1e-4123-bbf2-0c06b8652fe9@Spark>
Ah bien vu, je pense que tu l’as quasiment.
Dans le second cas c’est probablement  array("=" , "$obj",sql_quote($type))

--
Cédric
Le 14 avr. 2021 à 15:47 +0200, tofulm <[email protected]>, a écrit :
> J'ai trouvé
>
> C'est depuis ce commit
>
> https://git.spip.net/spip/spip/commit/81b3f6dd22d699986ca2d5a068959ec0011b4253
>
> et l'ajout de :
>
> $boucle->where["JOIN-L$n"] = array("'='","'$obj'","sql_quote('$type')");
>
> si on remplace cette ligne par :
>
> $boucle->where["JOIN-L$n"] = $echap ?
> array("'='","'$obj'","sql_quote('$type')") :
> array("=","$obj","sql_quote('$type')");
>
> Cela fonctionne sauf que maintenant :
>
> ecrire/base/connect_sql.php:L170:spip_sql_erreur()::Pub:ERREUR: Erreur
> 1305 de mysql: FUNCTION spip33_sngpckda.sql_quote does not exist
>
>
>
> --
> tofulm
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.