따옴표로 묶인 구문도 NOT LIKE 가 가능하도록 수정

This commit is contained in:
Min-Soo Kim 2020-12-25 21:55:08 +09:00
parent 510d1671be
commit 09def40ee0

View file

@ -455,7 +455,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