rfe #2816943 [interface] Add REGEXP ^...$ to select dialog.

This commit is contained in:
Michal Čihař
2010-01-13 13:31:33 +00:00
parent 88af8f2779
commit 2c5f033a0d
3 changed files with 6 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
+ rfe #2890226 [view] Enable VIEW rename + rfe #2890226 [view] Enable VIEW rename
+ rfe #838637 [privileges] Export a user's privileges + rfe #838637 [privileges] Export a user's privileges
- [core] Updated mootools to fix some glitches with Safari. - [core] Updated mootools to fix some glitches with Safari.
+ rfe #2816943 [interface] Add REGEXP ^...$ to select dialog.
3.3.0.0 (not yet released) 3.3.0.0 (not yet released)
+ rfe #2308632 [edit] Use hex for (var)binary fields, + rfe #2308632 [edit] Use hex for (var)binary fields,

View File

@@ -2973,6 +2973,7 @@ $cfg['TextOperators'] = array(
'=', '=',
'!=', '!=',
'REGEXP', 'REGEXP',
'REGEXP ^...$',
'NOT REGEXP', 'NOT REGEXP',
"= ''", "= ''",
"!= ''" "!= ''"

View File

@@ -403,6 +403,10 @@ else {
$func_type = 'LIKE'; $func_type = 'LIKE';
$fields[$i] = '%' . $fields[$i] . '%'; $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; $w[] = PMA_backquote($names[$i]) . ' ' . $func_type . ' ' . $quot . PMA_sqlAddslashes($fields[$i]) . $quot;
} // end if } // end if