mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 10:11:38 +09:00
Merge pull request #9 from misol/db-search-operator
따옴표로 묶인 구문도 NOT LIKE 가 가능하도록 수정
This commit is contained in:
commit
9d7869546d
1 changed files with 1 additions and 1 deletions
|
|
@ -460,7 +460,7 @@ class VariableBase
|
|||
$escaped_quot = true;
|
||||
$value = str_replace('"', '"', $value);
|
||||
}
|
||||
$keywords = preg_split('/(\([^\)]*\))|("[^"]*")|[\s,]+/', trim($value), 10, \PREG_SPLIT_NO_EMPTY | \PREG_SPLIT_DELIM_CAPTURE);
|
||||
$keywords = preg_split('/(\([^\)]*\))|(\-?"[^"]*")|[\s,]+/', trim($value), 10, \PREG_SPLIT_NO_EMPTY | \PREG_SPLIT_DELIM_CAPTURE);
|
||||
$conditions = array();
|
||||
$operators = array('AND', 'OR', '|');
|
||||
// loop the parsed keywords or operators
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue