Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 1bcfaa70
authored
May 19, 2018
by
Yaroslav Repeta
Committed by
Sushant
May 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(data-types/blob): only return null for mysql binary null (#9441)
1 parent
5f7d69a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
lib/dialects/mysql/data-types.js
lib/dialects/mysql/data-types.js
View file @
1bcfaa7
...
@@ -36,22 +36,6 @@ module.exports = BaseTypes => {
...
@@ -36,22 +36,6 @@ module.exports = BaseTypes => {
BaseTypes
.
GEOMETRY
.
types
.
mysql
=
[
'GEOMETRY'
];
BaseTypes
.
GEOMETRY
.
types
.
mysql
=
[
'GEOMETRY'
];
BaseTypes
.
JSON
.
types
.
mysql
=
[
'JSON'
];
BaseTypes
.
JSON
.
types
.
mysql
=
[
'JSON'
];
function
BLOB
(
length
)
{
if
(
!
(
this
instanceof
BLOB
))
return
new
BLOB
(
length
);
BaseTypes
.
BLOB
.
apply
(
this
,
arguments
);
}
inherits
(
BLOB
,
BaseTypes
.
BLOB
);
BLOB
.
parse
=
function
(
value
,
options
,
next
)
{
const
data
=
next
();
if
(
Buffer
.
isBuffer
(
data
)
&&
data
.
length
===
0
)
{
return
null
;
}
return
data
;
};
function
DECIMAL
(
precision
,
scale
)
{
function
DECIMAL
(
precision
,
scale
)
{
if
(
!
(
this
instanceof
DECIMAL
))
return
new
DECIMAL
(
precision
,
scale
);
if
(
!
(
this
instanceof
DECIMAL
))
return
new
DECIMAL
(
precision
,
scale
);
BaseTypes
.
DECIMAL
.
apply
(
this
,
arguments
);
BaseTypes
.
DECIMAL
.
apply
(
this
,
arguments
);
...
@@ -195,7 +179,6 @@ module.exports = BaseTypes => {
...
@@ -195,7 +179,6 @@ module.exports = BaseTypes => {
UUID
,
UUID
,
GEOMETRY
,
GEOMETRY
,
DECIMAL
,
DECIMAL
,
BLOB
,
JSON
:
JSONTYPE
JSON
:
JSONTYPE
};
};
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment