public function buildMatch($match, &$params)
{
if ($match instanceof Expression) {
$params = array_merge($params, $match->params);
return $match->expression;
}
if ($match instanceof MatchExpression) {
$phName = self::PARAM_PREFIX . count($params);
$params[$phName] = $this->getMatchBuilder()->build($match);
return $phName;
}
$phName = self::PARAM_PREFIX . count($params);
$params[$phName] = $this->db->escapeMatchValue($match);
return $phName;
}