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
582c8428
Commit
582c8428
authored
Jan 21, 2017
by
Steve Müller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix date time with timezone type introspection on Oracle
parent
a13c7d36
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
OracleSchemaManager.php
lib/Doctrine/DBAL/Schema/OracleSchemaManager.php
+1
-1
OracleSchemaManagerTest.php
.../Tests/DBAL/Functional/Schema/OracleSchemaManagerTest.php
+2
-0
No files found.
lib/Doctrine/DBAL/Schema/OracleSchemaManager.php
View file @
582c8428
...
...
@@ -102,7 +102,7 @@ class OracleSchemaManager extends AbstractSchemaManager
$dbType
=
strtolower
(
$tableColumn
[
'data_type'
]);
if
(
strpos
(
$dbType
,
"timestamp("
)
===
0
)
{
if
(
strpos
(
$dbType
,
"
WITH TIME ZONE
"
))
{
if
(
strpos
(
$dbType
,
"
with time zone
"
))
{
$dbType
=
"timestamptz"
;
}
else
{
$dbType
=
"timestamp"
;
...
...
tests/Doctrine/Tests/DBAL/Functional/Schema/OracleSchemaManagerTest.php
View file @
582c8428
...
...
@@ -240,6 +240,7 @@ class OracleSchemaManagerTest extends SchemaManagerFunctionalTestCase
$table
=
new
Table
(
'tbl_date'
);
$table
->
addColumn
(
'col_date'
,
'date'
);
$table
->
addColumn
(
'col_datetime'
,
'datetime'
);
$table
->
addColumn
(
'col_datetimetz'
,
'datetimetz'
);
$this
->
_sm
->
dropAndCreateTable
(
$table
);
...
...
@@ -247,5 +248,6 @@ class OracleSchemaManagerTest extends SchemaManagerFunctionalTestCase
$this
->
assertSame
(
'date'
,
$columns
[
'col_date'
]
->
getType
()
->
getName
());
$this
->
assertSame
(
'datetime'
,
$columns
[
'col_datetime'
]
->
getType
()
->
getName
());
$this
->
assertSame
(
'datetimetz'
,
$columns
[
'col_datetimetz'
]
->
getType
()
->
getName
());
}
}
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