public function selectDB($name)
    {
        $this->dbname = $name;

        if ($this->phase !== self::PHASE_GOT_INIT) {
            return $this->query('USE `' . $name . '`');
        }

        return true;
    }