Commit d8dddffc authored by runa's avatar runa

new datadict objects need the PDO object, not Doctrine_Connection

parent 8f69e2d3
...@@ -124,21 +124,21 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun ...@@ -124,21 +124,21 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun
$driver = $this->dbh->getAttribute(PDO::ATTR_DRIVER_NAME); $driver = $this->dbh->getAttribute(PDO::ATTR_DRIVER_NAME);
switch($driver) { switch($driver) {
case "mysql": case "mysql":
$this->dataDict = new Doctrine_DataDict_Mysql($this); $this->dataDict = new Doctrine_DataDict_Mysql($this->dbh);
break; break;
case "sqlite": case "sqlite":
case "sqlite2": case "sqlite2":
$this->dataDict = new Doctrine_DataDict_Sqlite($this); $this->dataDict = new Doctrine_DataDict_Sqlite($this->dbh);
break; break;
case "pgsql": case "pgsql":
$this->dataDict = new Doctrine_DataDict_Pgsql($this); $this->dataDict = new Doctrine_DataDict_Pgsql($this->dbh);
break; break;
case "oci": case "oci":
case "oci8": case "oci8":
$this->dataDict = new Doctrine_DataDict_Oracle($this); $this->dataDict = new Doctrine_DataDict_Oracle($this->dbh);
break; break;
case "mssql": case "mssql":
$this->dataDict = new Doctrine_DataDict_Mssql($this); $this->dataDict = new Doctrine_DataDict_Mssql($this->dbh);
break; break;
default: default:
throw new Doctrine_Connection_Exception("No datadict driver availible for ".$driver); throw new Doctrine_Connection_Exception("No datadict driver availible for ".$driver);
......
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