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
fcd13876
Commit
fcd13876
authored
Jan 21, 2017
by
Steve Müller
Committed by
Marco Pivetta
Jan 23, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #2555: fix date type mapping on Oracle
parent
94016b98
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
OraclePlatform.php
lib/Doctrine/DBAL/Platforms/OraclePlatform.php
+1
-1
OracleSchemaManagerTest.php
.../Tests/DBAL/Functional/Schema/OracleSchemaManagerTest.php
+17
-0
No files found.
lib/Doctrine/DBAL/Platforms/OraclePlatform.php
View file @
fcd13876
...
@@ -1123,7 +1123,7 @@ LEFT JOIN user_cons_columns r_cols
...
@@ -1123,7 +1123,7 @@ LEFT JOIN user_cons_columns r_cols
'nvarchar2'
=>
'string'
,
'nvarchar2'
=>
'string'
,
'char'
=>
'string'
,
'char'
=>
'string'
,
'nchar'
=>
'string'
,
'nchar'
=>
'string'
,
'date'
=>
'date
time
'
,
'date'
=>
'date'
,
'timestamp'
=>
'datetime'
,
'timestamp'
=>
'datetime'
,
'timestamptz'
=>
'datetimetz'
,
'timestamptz'
=>
'datetimetz'
,
'float'
=>
'float'
,
'float'
=>
'float'
,
...
...
tests/Doctrine/Tests/DBAL/Functional/Schema/OracleSchemaManagerTest.php
View file @
fcd13876
...
@@ -233,4 +233,21 @@ class OracleSchemaManagerTest extends SchemaManagerFunctionalTestCase
...
@@ -233,4 +233,21 @@ class OracleSchemaManagerTest extends SchemaManagerFunctionalTestCase
$columns
=
$this
->
_sm
->
listTableColumns
(
$table
->
getName
(),
$this
->
_conn
->
getUsername
());
$columns
=
$this
->
_sm
->
listTableColumns
(
$table
->
getName
(),
$this
->
_conn
->
getUsername
());
$this
->
assertCount
(
7
,
$columns
);
$this
->
assertCount
(
7
,
$columns
);
}
}
/**
* @group DBAL-2555
*/
public
function
testListTableDateTypeColumns
()
{
$table
=
new
Table
(
'tbl_date'
);
$table
->
addColumn
(
'col_date'
,
'date'
);
$table
->
addColumn
(
'col_datetime'
,
'datetime'
);
$this
->
_sm
->
dropAndCreateTable
(
$table
);
$columns
=
$this
->
_sm
->
listTableColumns
(
'tbl_date'
);
$this
->
assertSame
(
'date'
,
$columns
[
'col_date'
]
->
getType
()
->
getName
());
$this
->
assertSame
(
'datetime'
,
$columns
[
'col_datetime'
]
->
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