1
0
mirror of synced 2024-12-14 15:16:04 +03:00

Updated informix, mssql and pgsql connection drivers

This commit is contained in:
zYne 2006-11-01 10:05:26 +00:00
parent c1f8dddb3a
commit 466b0be17d
3 changed files with 37 additions and 3 deletions

View File

@ -31,4 +31,15 @@ class Doctrine_Connection_Informix extends Doctrine_Connection {
* @var string $driverName the name of this connection driver
*/
protected $driverName = 'Informix';
/**
* the constructor
*
* @param Doctrine_Manager $manager
* @param PDO $pdo database handle
*/
public function __construct(Doctrine_Manager $manager, PDO $pdo) {
// initialize all driver options
parent::__construct($manager, $pdo);
}
}

View File

@ -30,11 +30,23 @@ class Doctrine_Connection_Mssql extends Doctrine_Connection {
/**
* @var string $driverName the name of this connection driver
*/
protected $driverName = 'Mssql';
protected $driverName = 'Mssql';
/**
* the constructor
*
* @param Doctrine_Manager $manager
* @param PDO $pdo database handle
*/
public function __construct(Doctrine_Manager $manager, PDO $pdo) {
// initialize all driver options
parent::__construct($manager, $pdo);
}
/**
* returns the next value in the given sequence
* @param string $sequence
* @return integer
*
* @param string $sequence name of the sequence
* @return integer the next value in the given sequence
*/
public function getNextID($sequence) {
$this->query("INSERT INTO $sequence (vapor) VALUES (0)");

View File

@ -31,6 +31,17 @@ class Doctrine_Connection_Pgsql extends Doctrine_Connection_Common {
* @var string $driverName the name of this connection driver
*/
protected $driverName = 'Pgsql';
/**
* the constructor
*
* @param Doctrine_Manager $manager
* @param PDO $pdo database handle
*/
public function __construct(Doctrine_Manager $manager, PDO $pdo) {
// initialize all driver options
parent::__construct($manager, $pdo);
}
/**
* returns the next value in the given sequence
* @param string $sequence