• Модуль: perfmon
  • Путь к файлу: ~/bitrix/modules/perfmon/classes/general/query.php
  • Класс: CPerfQueryWhere
  • Вызов: CPerfQueryWhere::_or2in
function _or2in($or_match)
{
	$sql = $or_match[0];

	$match = array();
	if (preg_match_all("/(".$this->table_aliases_regex."\.[a-zA-Z0-9_]+|[0-9]+|'[^']*') (?:=) ([0-9]+|'[^']*')/", $or_match[1], $match))
	{
		if (count(array_unique($match[1])) == 1)
			$sql = $match[1][0]." IN ( ".implode(", ", $match[2])." )";
	}

	return $sql;
}