fix to get the column variable

This commit is contained in:
Min-Soo Kim 2020-12-23 09:23:26 +09:00
parent a9ff791f4b
commit 1b80db4652

View file

@ -237,7 +237,7 @@ class VariableBase
} }
break; break;
case 'search': case 'search':
list($where, $params[]) = $this->_parseSearchKeywords($value); list($where, $params[]) = $this->_parseSearchKeywords($column, $value);
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 : '?');
@ -434,7 +434,7 @@ class VariableBase
* @param string $value * @param string $value
* @return object * @return object
*/ */
protected function _parseSearchKeywords($value) protected function _parseSearchKeywords($column, $value)
{ {
// Initialze the return values. // Initialze the return values.
$where = ''; $where = '';