public function quoteName($name)
    {
        if (strpos($name, '.') === false) {
            return $this->quoteSimpleName($name);
        }
        $parts = explode('.', $name);
        foreach ($parts as $i => $part) {
            if ('*' !== $part) { // last part may be wildcard, i.e. select table.*
                $parts[$i] = $this->quoteSimpleName($part);
            }
        }

        return implode('.', $parts);
    }