1
0
mirror of synced 2025-02-20 22:23:14 +03:00

getDatabaseName()

This commit is contained in:
zYne 2008-01-04 23:37:25 +00:00
parent d2bff7d31a
commit 33223b5b6c

View File

@ -90,6 +90,16 @@ class Doctrine_Connection_Mysql extends Doctrine_Connection_Common
parent::__construct($manager, $adapter);
}
/**
* returns the name of the connected database
*
* @return string
*/
public function getDatabaseName()
{
return $this->fetchOne('SELECT DATABASE()');
}
/**
* Set the charset on the current connection
*