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 efe5c171
authored
Mar 25, 2014
by
Mick Hansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
only do map check if theres a single primary key
1 parent
06d0b64b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
lib/dialects/abstract/query.js
lib/dialects/abstract/query.js
View file @
efe5c17
...
@@ -350,13 +350,16 @@ module.exports = (function() {
...
@@ -350,13 +350,16 @@ module.exports = (function() {
})
})
delete
result
.
__children
delete
result
.
__children
},
},
primaryKeyAttribute
=
includeOptions
.
daoFactory
.
primaryKeyAttribute
,
primaryKeyAttribute
,
primaryKeyMap
=
{}
primaryKeyMap
=
{}
// Ignore all include keys on main data
// Ignore all include keys on main data
if
(
includeOptions
.
includeNames
)
{
if
(
includeOptions
.
includeNames
)
{
calleeDataIgnore
=
calleeDataIgnore
.
concat
(
includeOptions
.
includeNames
)
calleeDataIgnore
=
calleeDataIgnore
.
concat
(
includeOptions
.
includeNames
)
}
}
if
(
includeOptions
.
daoFactory
.
primaryKeyAttributes
.
length
===
1
)
{
primaryKeyAttribute
=
includeOptions
.
daoFactory
.
primaryKeyAttribute
}
data
.
forEach
(
function
(
row
)
{
data
.
forEach
(
function
(
row
)
{
row
=
Dot
.
transform
(
row
)
row
=
Dot
.
transform
(
row
)
...
...
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