@kijin 님 의견에 따라 수정

This commit is contained in:
Min-Soo Kim 2020-12-22 18:05:40 +09:00
parent 56921fa9be
commit d23c5f7271

View file

@ -237,9 +237,7 @@ class VariableBase
} }
break; break;
case 'search': case 'search':
$parsed_keywords = $this->_parseSearchKeywords($value); list($where, $params) = $this->_parseSearchKeywords($value);
$where = $parsed_keywords[0];
$params = array_merge($params, $parsed_keywords[1]);
break; break;
case 'plus': case 'plus':
$where = sprintf('%s = %s + %s', $column, $column, $is_expression ? $value : '?'); $where = sprintf('%s = %s + %s', $column, $column, $is_expression ? $value : '?');
@ -436,7 +434,7 @@ class VariableBase
* @param string $value * @param string $value
* @return object * @return object
*/ */
private function _parseSearchKeywords($value) protected function _parseSearchKeywords($value)
{ {
// Initialze the return values. // Initialze the return values.
$where = ''; $where = '';