Updated informix, mssql and pgsql connection drivers
This commit is contained in:
parent
c1f8dddb3a
commit
466b0be17d
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -31,10 +31,22 @@ class Doctrine_Connection_Mssql extends Doctrine_Connection {
|
||||
* @var string $driverName the name of this connection driver
|
||||
*/
|
||||
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)");
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user