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:
2026-01-07 23:26:07 -06:00
parent 4dbc9cfc52
commit e8b1afdb71

View File

@@ -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 != ''){