Skip to content

Commit

Permalink
Various updates to bring Driver and Connection in line with existing …
Browse files Browse the repository at this point in the history
…Doctrine DBAL.
  • Loading branch information
trooney committed Jan 28, 2012
1 parent 9842cc5 commit fe186e8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .gitignore
@@ -0,0 +1,7 @@
*~
*.lock
*.DS_Store
*.swp
*.out
.idea/

2 changes: 1 addition & 1 deletion Doctrine/DBAL/Driver/PDODblib/Connection.php
Expand Up @@ -19,7 +19,7 @@
* <http://www.doctrine-project.org>.
*/

namespace PDODblibBundle\Doctrine\DBAL\Driver\PDODblib;
namespace Doctrine\DBAL\Driver\PDODblib;

/**
* PDODblib Connection implementation.
Expand Down
9 changes: 5 additions & 4 deletions Doctrine/DBAL/Driver/PDODblib/Driver.php
Expand Up @@ -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.
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit fe186e8

Please sign in to comment.