Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
2202ae6c
Commit
2202ae6c
authored
Nov 17, 2014
by
wenbin1989
Committed by
Qiang Xue
Dec 16, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #6080: Oracle DB schema did not load column types correctly
parent
bbbeae95
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
Schema.php
framework/db/oci/Schema.php
+6
-0
No files found.
framework/CHANGELOG.md
View file @
2202ae6c
...
...
@@ -4,6 +4,7 @@ Yii Framework 2 Change Log
2.
0.2 under development
-----------------------
-
Bug #6080: Oracle DB schema did not load column types correctly (wenbin1989)
-
Bug #6404: advanced application template
`Alert`
widget was generating duplicate IDs in case of multiple flashes (SDKiller)
-
Enh #6247: Logger and error handler are now using slightly less memory (stepanselyuk, samdark)
-
Enh #6434: Added
`yii\behaviors\SluggableBehavior::immutable`
to support keeping the generated slug unchanged (trntv)
...
...
framework/db/oci/Schema.php
View file @
2202ae6c
...
...
@@ -213,6 +213,8 @@ EOD;
$this
->
extractColumnType
(
$c
,
$column
[
'DATA_TYPE'
]);
$this
->
extractColumnSize
(
$c
,
$column
[
'DATA_TYPE'
]);
$c
->
phpType
=
$this
->
getColumnPhpType
(
$c
);
if
(
!
$c
->
isPrimaryKey
)
{
if
(
stripos
(
$column
[
'DATA_DEFAULT'
],
'timestamp'
)
!==
false
)
{
$c
->
defaultValue
=
null
;
...
...
@@ -302,6 +304,10 @@ EOD;
}
else
{
$column
->
type
=
'double'
;
}
}
elseif
(
strpos
(
$dbType
,
'BLOB'
)
!==
false
)
{
$column
->
type
=
'binary'
;
}
elseif
(
strpos
(
$dbType
,
'CLOB'
)
!==
false
)
{
$column
->
type
=
'text'
;
}
else
{
$column
->
type
=
'string'
;
}
...
...
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