Make LIKE sql WHERE clause lower case

This commit is contained in:
xdrm-brackets 2017-11-13 11:51:25 +01:00
parent 061d473cad
commit ad4143771c
1 changed files with 5 additions and 2 deletions

View File

@ -132,7 +132,10 @@
/* [1] On construit la requête
=========================================================*/
/* (1) Chamo */
$sql .= $field[0].'.'.$field[1].' ';
if( $value[1] == Rows::COND_LIKE ) // make LIKE lowercase
$sql .= 'LOWER('.$field[0].'.'.$field[1].') ';
else
$sql .= $field[0].'.'.$field[1].' ';
/* (2) Opérateur */
$sql .= substr($value[1], 2, -2).' ';
@ -143,7 +146,7 @@
$sql .= 'NULL';
return $sql;
}
// {2} Si not NULL //
$sql .= ':'.$field[0].'_x_'.$field[1].'_'.$offset;