Commit 466b0be1 authored by zYne's avatar zYne

Updated informix, mssql and pgsql connection drivers

parent c1f8dddb
......@@ -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);
}
}
......@@ -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)");
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment