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
6ebdc45f
Commit
6ebdc45f
authored
Jan 16, 2012
by
Benjamin Eberlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix whitespace/indention problems
parent
4dd96a7d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
SQLServer2008Platform.php
lib/Doctrine/DBAL/Platforms/SQLServer2008Platform.php
+4
-4
SQLServerPlatform.php
lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php
+3
-3
SchemaManagerFunctionalTestCase.php
...BAL/Functional/Schema/SchemaManagerFunctionalTestCase.php
+4
-4
No files found.
lib/Doctrine/DBAL/Platforms/SQLServer2008Platform.php
View file @
6ebdc45f
...
@@ -52,7 +52,7 @@ class SQLServer2008Platform extends SQLServer2005Platform
...
@@ -52,7 +52,7 @@ class SQLServer2008Platform extends SQLServer2005Platform
{
{
return
'TIME(0)'
;
return
'TIME(0)'
;
}
}
/**
/**
* @override
* @override
*/
*/
...
@@ -60,7 +60,7 @@ class SQLServer2008Platform extends SQLServer2005Platform
...
@@ -60,7 +60,7 @@ class SQLServer2008Platform extends SQLServer2005Platform
{
{
return
'Y-m-d H:i:s.u'
;
return
'Y-m-d H:i:s.u'
;
}
}
/**
/**
* @override
* @override
*/
*/
...
@@ -84,7 +84,7 @@ class SQLServer2008Platform extends SQLServer2005Platform
...
@@ -84,7 +84,7 @@ class SQLServer2008Platform extends SQLServer2005Platform
{
{
parent
::
initializeDoctrineTypeMappings
();
parent
::
initializeDoctrineTypeMappings
();
$this
->
doctrineTypeMapping
[
'datetime2'
]
=
'datetime'
;
$this
->
doctrineTypeMapping
[
'datetime2'
]
=
'datetime'
;
$this
->
doctrineTypeMapping
[
'date'
]
=
'date'
;
$this
->
doctrineTypeMapping
[
'date'
]
=
'date'
;
$this
->
doctrineTypeMapping
[
'time'
]
=
'time'
;
$this
->
doctrineTypeMapping
[
'time'
]
=
'time'
;
}
}
}
}
lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php
View file @
6ebdc45f
...
@@ -712,10 +712,10 @@ class SQLServerPlatform extends AbstractPlatform
...
@@ -712,10 +712,10 @@ class SQLServerPlatform extends AbstractPlatform
{
{
return
'Y-m-d H:i:s.000'
;
return
'Y-m-d H:i:s.000'
;
}
}
/**
/**
* @override
* @override
*/
*/
public
function
getDateFormatString
()
public
function
getDateFormatString
()
{
{
return
'Y-m-d H:i:s.000'
;
return
'Y-m-d H:i:s.000'
;
...
@@ -723,7 +723,7 @@ class SQLServerPlatform extends AbstractPlatform
...
@@ -723,7 +723,7 @@ class SQLServerPlatform extends AbstractPlatform
/**
/**
* @override
* @override
*/
*/
public
function
getTimeFormatString
()
public
function
getTimeFormatString
()
{
{
return
'Y-m-d H:i:s.000'
;
return
'Y-m-d H:i:s.000'
;
...
...
tests/Doctrine/Tests/DBAL/Functional/Schema/SchemaManagerFunctionalTestCase.php
View file @
6ebdc45f
...
@@ -16,21 +16,21 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
...
@@ -16,21 +16,21 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
* @var \Doctrine\DBAL\Schema\AbstractSchemaManager
* @var \Doctrine\DBAL\Schema\AbstractSchemaManager
*/
*/
protected
$_sm
;
protected
$_sm
;
protected
function
getPlatformName
()
protected
function
getPlatformName
()
{
{
$class
=
get_class
(
$this
);
$class
=
get_class
(
$this
);
$e
=
explode
(
'\\'
,
$class
);
$e
=
explode
(
'\\'
,
$class
);
$testClass
=
end
(
$e
);
$testClass
=
end
(
$e
);
$dbms
=
strtolower
(
str_replace
(
'SchemaManagerTest'
,
null
,
$testClass
));
$dbms
=
strtolower
(
str_replace
(
'SchemaManagerTest'
,
null
,
$testClass
));
return
$dbms
;
return
$dbms
;
}
}
protected
function
setUp
()
protected
function
setUp
()
{
{
parent
::
setUp
();
parent
::
setUp
();
$dbms
=
$this
->
getPlatformName
();
$dbms
=
$this
->
getPlatformName
();
if
(
$this
->
_conn
->
getDatabasePlatform
()
->
getName
()
!==
$dbms
)
{
if
(
$this
->
_conn
->
getDatabasePlatform
()
->
getName
()
!==
$dbms
)
{
$this
->
markTestSkipped
(
get_class
(
$this
)
.
' requires the use of '
.
$dbms
);
$this
->
markTestSkipped
(
get_class
(
$this
)
.
' requires the use of '
.
$dbms
);
...
...
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