getDatabaseName()
This commit is contained in:
parent
d2bff7d31a
commit
33223b5b6c
@ -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
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user