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 d2167832
authored
May 26, 2015
by
Jan Aagaard Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #3800 for sqlite
1 parent
6e2ae509
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
changelog.md
lib/dialects/abstract/query.js
lib/dialects/sqlite/query.js
changelog.md
View file @
d216783
# Next
-
[
BUG
]
Fix a case where
`type`
in
`sequelize.query`
was not being set to raw.
[
#3800
](
https://github.com/sequelize/sequelize/pull/3800
)
# 3.1.1
-
[
FIXED
]
Always quote aliases, even when quoteIdentifiers is false
[
#1589
](
https://github.com/sequelize/sequelize/issues/1589
)
-
[
FIXED
]
No longer clones Instances in model finder options
...
...
lib/dialects/abstract/query.js
View file @
d216783
...
...
@@ -154,7 +154,7 @@ module.exports = (function() {
};
AbstractQuery
.
prototype
.
isUpdateQuery
=
function
()
{
return
this
.
options
.
type
===
QueryTypes
.
UPDATE
;
return
this
.
options
.
type
===
QueryTypes
.
UPDATE
;
};
AbstractQuery
.
prototype
.
handleSelectQuery
=
function
(
results
)
{
...
...
lib/dialects/sqlite/query.js
View file @
d216783
...
...
@@ -269,7 +269,7 @@ module.exports = (function() {
Query
.
prototype
.
getDatabaseMethod
=
function
()
{
if
(
this
.
isUpsertQuery
())
{
return
'exec'
;
// Needed to run multiple queries in one
}
else
if
(
this
.
isInsertQuery
()
||
this
.
isUpdateQuery
()
||
(
this
.
sql
.
toLowerCase
().
indexOf
(
'CREATE TEMPORARY TABLE'
.
toLowerCase
())
!==
-
1
)
||
this
.
options
.
type
===
QueryTypes
.
BULKDELETE
)
{
}
else
if
(
this
.
isInsertQuery
()
||
this
.
isUpdateQuery
()
||
this
.
isBulkUpdateQuery
()
||
(
this
.
sql
.
toLowerCase
().
indexOf
(
'CREATE TEMPORARY TABLE'
.
toLowerCase
())
!==
-
1
)
||
this
.
options
.
type
===
QueryTypes
.
BULKDELETE
)
{
return
'run'
;
}
else
{
return
'all'
;
...
...
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