Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added support of SQLServer2008Platform #8

Merged
merged 1 commit into from

2 participants

@mabuzagu

Added support of SQLServer2008Platform

@mabuzagu mabuzagu Added support of SQLServer2008Platform
Added support of SQLServer2008Platform
a2c6546
@trooney trooney merged commit 9ffe2eb into from
@trooney
Owner

Thanks for the addition. FYI, there are better bundles then mine, which I keep for legacy reasons. https://github.com/intellectsoft-uk/MssqlBundle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 28, 2013
  1. @mabuzagu

    Added support of SQLServer2008Platform

    mabuzagu authored
    Added support of SQLServer2008Platform
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 0 deletions.
  1. +5 −0 Doctrine/DBAL/Driver/PDODblib/Driver.php
View
5 Doctrine/DBAL/Driver/PDODblib/Driver.php
@@ -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();
}
Something went wrong with that request. Please try again.