Patch 939197
This commit is contained in:
@@ -37,7 +37,7 @@ if ($cfg['PropertiesIconic'] == true) {
|
||||
* LIKE works also on integers and dates so I added it in numfunctions
|
||||
*/
|
||||
$numfunctions = array('=', '>', '>=', '<', '<=', '!=', 'LIKE', 'NOT LIKE');
|
||||
$textfunctions = array('LIKE', 'NOT LIKE', '=', '!=', 'REGEXP', 'NOT REGEXP');
|
||||
$textfunctions = array('LIKE %...%','LIKE', 'NOT LIKE', '=', '!=', 'REGEXP', 'NOT REGEXP');
|
||||
$enumfunctions = array('=', '!=');
|
||||
$nullfunctions = array('IS NULL', 'IS NOT NULL');
|
||||
$unaryfunctions = array(
|
||||
@@ -341,6 +341,12 @@ else {
|
||||
} else {
|
||||
$quot = '';
|
||||
}
|
||||
|
||||
// LIKE %...%
|
||||
if ($func_type == 'LIKE %...%') {
|
||||
$func_type = 'LIKE';
|
||||
$fields[$i] = '%' . $fields[$i] . '%';
|
||||
}
|
||||
$w[] = PMA_backquote(urldecode($names[$i])) . ' ' . $func_type . ' ' . $quot . PMA_sqlAddslashes($fields[$i]) . $quot;
|
||||
|
||||
} // end if
|
||||
|
Reference in New Issue
Block a user