Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Added support of SQLServer2008Platform #8

Merged
merged 1 commit into from Jan 28, 2013
Jump to file or symbol
Failed to load files and symbols.
+5 −0
Split
@@ -60,6 +60,11 @@ private function _constructPdoDsn(array $params) {
}
public function getDatabasePlatform() {
+
+ if (class_exists('\\Doctrine\\DBAL\\Platforms\\SQLServer2008Platform')) {
+ return new \Doctrine\DBAL\Platforms\SQLServer2008Platform();
+ }
+
if (class_exists('\\Doctrine\\DBAL\\Platforms\\SQLServer2005Platform')) {
return new \Doctrine\DBAL\Platforms\SQLServer2005Platform();
}