rfe #2816943 [interface] Add REGEXP ^...$ to select dialog.
This commit is contained in:
@@ -9,6 +9,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
|
||||
+ rfe #2890226 [view] Enable VIEW rename
|
||||
+ rfe #838637 [privileges] Export a user's privileges
|
||||
- [core] Updated mootools to fix some glitches with Safari.
|
||||
+ rfe #2816943 [interface] Add REGEXP ^...$ to select dialog.
|
||||
|
||||
3.3.0.0 (not yet released)
|
||||
+ rfe #2308632 [edit] Use hex for (var)binary fields,
|
||||
|
@@ -2973,6 +2973,7 @@ $cfg['TextOperators'] = array(
|
||||
'=',
|
||||
'!=',
|
||||
'REGEXP',
|
||||
'REGEXP ^...$',
|
||||
'NOT REGEXP',
|
||||
"= ''",
|
||||
"!= ''"
|
||||
|
@@ -403,6 +403,10 @@ else {
|
||||
$func_type = 'LIKE';
|
||||
$fields[$i] = '%' . $fields[$i] . '%';
|
||||
}
|
||||
if ($func_type == 'REGEXP ^...$') {
|
||||
$func_type = 'REGEXP';
|
||||
$fields[$i] = '^' . $fields[$i] . '$';
|
||||
}
|
||||
$w[] = PMA_backquote($names[$i]) . ' ' . $func_type . ' ' . $quot . PMA_sqlAddslashes($fields[$i]) . $quot;
|
||||
|
||||
} // end if
|
||||
|
Reference in New Issue
Block a user