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
不要怂,就是干,撸起袖子干!
You need to sign in or sign up before continuing.
Commit f321cb38
authored
Dec 29, 2013
by
Mick Hansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix sqlite blank create
1 parent
1b7be3e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
lib/dialects/sqlite/query-generator.js
test/associations/has-many.test.js
lib/dialects/sqlite/query-generator.js
View file @
f321cb3
...
...
@@ -156,7 +156,9 @@ module.exports = (function() {
insertQuery
:
function
(
tableName
,
attrValueHash
)
{
attrValueHash
=
Utils
.
removeNullValuesFromHash
(
attrValueHash
,
this
.
options
.
omitNull
)
var
query
=
"INSERT INTO <%= table %> (<%= attributes %>) VALUES (<%= values %>);"
;
var
query
,
valueQuery
=
"INSERT INTO <%= table %> (<%= attributes %>) VALUES (<%= values %>);"
,
emptyQuery
=
"INSERT INTO <%= table %> DEFAULT VALUES;"
var
replacements
=
{
table
:
this
.
quoteIdentifier
(
tableName
),
...
...
@@ -166,6 +168,7 @@ module.exports = (function() {
}.
bind
(
this
)).
join
(
","
)
}
query
=
replacements
.
attributes
.
length
?
valueQuery
:
emptyQuery
return
Utils
.
_
.
template
(
query
)(
replacements
)
},
...
...
test/associations/has-many.test.js
View file @
f321cb3
...
...
@@ -915,8 +915,6 @@ describe(Support.getTestDialectTeaser("HasMany"), function() {
})
})
})
}).
on
(
'sql'
,
function
(
sql
)
{
console
.
log
(
sql
)
})
})
})
...
...
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