Permalink
Browse files

Various updates to bring Driver and Connection in line with existing …

…Doctrine DBAL.
  • Loading branch information...
1 parent 9842cc5 commit fe186e8613d87fa730fd85d6d0195e930091e756 @trooney committed Jan 28, 2012
Showing with 13 additions and 5 deletions.
  1. +7 −0 .gitignore
  2. +1 −1 Doctrine/DBAL/Driver/PDODblib/Connection.php
  3. +5 −4 Doctrine/DBAL/Driver/PDODblib/Driver.php
View
@@ -0,0 +1,7 @@
+*~
+*.lock
+*.DS_Store
+*.swp
+*.out
+.idea/
+
@@ -19,7 +19,7 @@
* <http://www.doctrine-project.org>.
*/
-namespace PDODblibBundle\Doctrine\DBAL\Driver\PDODblib;
+namespace Doctrine\DBAL\Driver\PDODblib;
/**
* PDODblib Connection implementation.
@@ -19,7 +19,7 @@
* <http://www.doctrine-project.org>.
*/
-namespace PDODblibBundle\Doctrine\DBAL\Driver\PDODblib;
+namespace Doctrine\DBAL\Driver\PDODblib;
/**
* The PDO-based Dblib driver.
@@ -59,19 +59,20 @@ private function _constructPdoDsn(array $params)
if (isset($params['dbname'])) {
$dsn .= ';dbname=' . $params['dbname'];
}
-
return $dsn;
}
public function getDatabasePlatform()
{
- return new \Doctrine\DBAL\Platforms\MsSqlPlatform();
+ //return new \Doctrine\DBAL\Platforms\MsSqlPlatform();
+ return new \Doctrine\DBAL\Platforms\SQLServer2005Platform();
}
public function getSchemaManager(\Doctrine\DBAL\Connection $conn)
{
- return new \Doctrine\DBAL\Schema\MsSqlSchemaManager($conn);
+ //return new \Doctrine\DBAL\Schema\MsSqlSchemaManager($conn);
+ return new \Doctrine\DBAL\Schema\SQLServerSchemaManager($conn);
}
public function getName()

0 comments on commit fe186e8

Please sign in to comment.