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 20a1f427
authored
Mar 30, 2016
by
Jan Aagaard Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
internal(datatypes) Support lower case type names in SQLite. Fixes #5482
1 parent
6fb971f9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
changelog.md
lib/dialects/sqlite/query.js
changelog.md
View file @
20a1f42
# Next
-
[
FIXED
]
Support lower case type names in SQLite
[
#5482
](
https://github.com/sequelize/sequelize/issues/5482
)
# 3.20.0
# 3.20.0
-
[
ADDED
]
rejectOnEmpty mode
[
#272
](
https://github.com/sequelize/sequelize/issues/272
)
[
#5480
]
(https://github.com/sequelize/sequelize/issues/5480)
-
[
ADDED
]
rejectOnEmpty mode
[
#272
](
https://github.com/sequelize/sequelize/issues/272
)
[
#5480
]
(https://github.com/sequelize/sequelize/issues/5480)
-
[
ADDED
]
`beforeCount`
hook
[
#5209
](
https://github.com/sequelize/sequelize/pull/5209
)
-
[
ADDED
]
`beforeCount`
hook
[
#5209
](
https://github.com/sequelize/sequelize/pull/5209
)
...
...
lib/dialects/sqlite/query.js
View file @
20a1f42
...
@@ -86,7 +86,7 @@ Query.prototype.run = function(sql, parameters) {
...
@@ -86,7 +86,7 @@ Query.prototype.run = function(sql, parameters) {
//do we need benchmark for this query execution
//do we need benchmark for this query execution
var
benchmark
=
this
.
sequelize
.
options
.
benchmark
||
this
.
options
.
benchmark
;
var
benchmark
=
this
.
sequelize
.
options
.
benchmark
||
this
.
options
.
benchmark
;
if
(
!
benchmark
)
{
if
(
!
benchmark
)
{
this
.
sequelize
.
log
(
'Executing ('
+
(
this
.
database
.
uuid
||
'default'
)
+
'): '
+
this
.
sql
,
this
.
options
);
this
.
sequelize
.
log
(
'Executing ('
+
(
this
.
database
.
uuid
||
'default'
)
+
'): '
+
this
.
sql
,
this
.
options
);
}
else
{
}
else
{
...
@@ -163,7 +163,7 @@ Query.prototype.run = function(sql, parameters) {
...
@@ -163,7 +163,7 @@ Query.prototype.run = function(sql, parameters) {
type
=
type
.
substr
(
0
,
type
.
indexOf
(
'('
));
type
=
type
.
substr
(
0
,
type
.
indexOf
(
'('
));
}
}
type
=
type
.
replace
(
'UNSIGNED'
,
''
).
replace
(
'ZEROFILL'
,
''
);
type
=
type
.
replace
(
'UNSIGNED'
,
''
).
replace
(
'ZEROFILL'
,
''
);
type
=
type
.
trim
();
type
=
type
.
trim
()
.
toUpperCase
()
;
var
parse
=
parserStore
.
get
(
type
);
var
parse
=
parserStore
.
get
(
type
);
if
(
value
!==
null
&&
parse
)
{
if
(
value
!==
null
&&
parse
)
{
...
...
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