mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Fix #1202 allow REGEXP operator in XML query
This commit is contained in:
parent
b1e01b0fc5
commit
5ddf928869
1 changed files with 27 additions and 20 deletions
|
|
@ -133,7 +133,8 @@ class Condition
|
||||||
case 'notlike_tail' :
|
case 'notlike_tail' :
|
||||||
case 'notlike_prefix' :
|
case 'notlike_prefix' :
|
||||||
case 'notlike' :
|
case 'notlike' :
|
||||||
case 'not_like' :
|
case 'regexp' :
|
||||||
|
case 'notregexp' :
|
||||||
case 'in' :
|
case 'in' :
|
||||||
case 'notin' :
|
case 'notin' :
|
||||||
case 'not_in' :
|
case 'not_in' :
|
||||||
|
|
@ -226,6 +227,12 @@ class Condition
|
||||||
case 'not_like' :
|
case 'not_like' :
|
||||||
return $name . ' NOT LIKE ' . $value;
|
return $name . ' NOT LIKE ' . $value;
|
||||||
break;
|
break;
|
||||||
|
case 'regexp' :
|
||||||
|
return $name . ' REGEXP ' . $value;
|
||||||
|
break;
|
||||||
|
case 'notregexp' :
|
||||||
|
return $name . ' NOT REGEXP ' . $value;
|
||||||
|
break;
|
||||||
case 'in' :
|
case 'in' :
|
||||||
return $name . ' IN ' . $value;
|
return $name . ' IN ' . $value;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue