Fix collation issue in productos search by removing BINARY
Removed BINARY keyword from LIKE clauses to allow proper comparison between UTF-8 search terms and latin1_swedish_ci database values. BINARY was causing exact match issues preventing search functionality.
This commit is contained in:
@@ -686,10 +686,10 @@ class Producto extends Main
|
||||
$sqlAdd .= ' AND p.prodCatId = "'.$this->prodCatId.'"';
|
||||
|
||||
if($this->descripcion)
|
||||
$sqlAdd .= ' AND p.modelo LIKE BINARY "%'.$this->descripcion.'%"';
|
||||
$sqlAdd .= ' AND p.modelo LIKE "%'.$this->descripcion.'%"';
|
||||
|
||||
if($this->codigoBarra)
|
||||
$sqlAdd .= ' AND p.codigoBarra LIKE BINARY "%'.$this->codigoBarra.'%"';
|
||||
$sqlAdd .= ' AND p.codigoBarra LIKE "%'.$this->codigoBarra.'%"';
|
||||
|
||||
if($sqlAdd != ''){
|
||||
|
||||
|
||||
Reference in New Issue
Block a user