public function getName()
    {
        if (!$this->_name) {
            $result = $this->query(
                'select catalog_name from information_schema.information_schema_catalog_name'
            );
            $this->_name = $result[0]['catalog_name'];
        }
        return $this->_name;
    }
public function getName()
    {
        if (!$this->_name) {
            $result = $this->query(
                'select catalog_name from information_schema.information_schema_catalog_name'
            );
            $this->_name = $result[0]['catalog_name'];
        }
        return $this->_name;
    }
public function getName ( ) { if ( ! $ this -> _name ) { $ result = $ this -> query ( 'select catalog_name from information_schema.information_schema_catalog_name' ) ; $ this -> _name = $ result [ 0 ] [ 'catalog_name' ] ; } return $ this -> _name ; }
Return name of the database that the current connection points to
@return string Database name
Return name of the database that the current connection points to