Commit 8fb0adce authored by Benjamin Eberlei's avatar Benjamin Eberlei

[DBAL-461] Add support for NUMERIC(N, M) type syntax in SQL Server.

Remove test for 2.3 branch
parent 5b8a665a
...@@ -59,10 +59,10 @@ abstract class AbstractSchemaManager ...@@ -59,10 +59,10 @@ abstract class AbstractSchemaManager
* *
* @param \Doctrine\DBAL\Connection $conn * @param \Doctrine\DBAL\Connection $conn
*/ */
public function __construct(\Doctrine\DBAL\Connection $conn) public function __construct(\Doctrine\DBAL\Connection $conn, AbstractPlatform $platform = null)
{ {
$this->_conn = $conn; $this->_conn = $conn;
$this->_platform = $this->_conn->getDatabasePlatform(); $this->_platform = $platform ?: $this->_conn->getDatabasePlatform();
} }
/** /**
......
...@@ -40,6 +40,7 @@ class SQLServerSchemaManager extends AbstractSchemaManager ...@@ -40,6 +40,7 @@ class SQLServerSchemaManager extends AbstractSchemaManager
protected function _getPortableTableColumnDefinition($tableColumn) protected function _getPortableTableColumnDefinition($tableColumn)
{ {
$dbType = strtolower($tableColumn['TYPE_NAME']); $dbType = strtolower($tableColumn['TYPE_NAME']);
$dbType = strtok($dbType, '(), ');
$autoincrement = false; $autoincrement = false;
if (stripos($dbType, 'identity')) { if (stripos($dbType, 'identity')) {
......
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