public function quoteIdentifiers($names)
    {
        if (is_array($names)) {
            foreach ($names as $key => $value) {
                $var = $this->quoteIdentifiers($value);
                $names[$key] = $var;

            }
            return $names;
        }
        $result = $this->quote . preg_replace('#\\\*' . $this->quote . '#', $this->quote . $this->quote, $names) . $this->quote;
        $result = preg_replace('#\.#', $this->quote . '.' . $this->quote, $result);
        return $result;
    }