Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
8fb0adce
Commit
8fb0adce
authored
Mar 14, 2013
by
Benjamin Eberlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DBAL-461] Add support for NUMERIC(N, M) type syntax in SQL Server.
Remove test for 2.3 branch
parent
5b8a665a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
AbstractSchemaManager.php
lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php
+3
-3
SQLServerSchemaManager.php
lib/Doctrine/DBAL/Schema/SQLServerSchemaManager.php
+1
-0
No files found.
lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php
View file @
8fb0adce
...
@@ -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
();
}
}
/**
/**
...
...
lib/Doctrine/DBAL/Schema/SQLServerSchemaManager.php
View file @
8fb0adce
...
@@ -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'
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment