Fix: remplacement de LIKE dans la requete sql par REGEXP afin de palier au différent format de numérotation
This commit is contained in:
parent
85a549e2b2
commit
a8ade2beb0
@ -205,7 +205,7 @@ function info()
|
|||||||
// Recherche rapide car restreint par un like sur champ indexé
|
// Recherche rapide car restreint par un like sur champ indexé
|
||||||
$sql = "SELECT MAX(0+SUBSTRING(ref,-".$posindice."))";
|
$sql = "SELECT MAX(0+SUBSTRING(ref,-".$posindice."))";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."propal";
|
$sql.= " FROM ".MAIN_DB_PREFIX."propal";
|
||||||
$sql.= " WHERE ref like '^".$searchyy."'";
|
$sql.= " WHERE ref REGEXP '^".$searchyy."'";
|
||||||
$resql=$db->query($sql);
|
$resql=$db->query($sql);
|
||||||
if ($resql)
|
if ($resql)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user