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 4886b866
authored
Oct 23, 2018
by
Simon Schick
Committed by
Sushant
Oct 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(query-generator): fix bad property access (#10056)
1 parent
a0545bf2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
lib/dialects/abstract/query-generator.js
lib/dialects/abstract/query-generator.js
View file @
4886b86
...
@@ -599,11 +599,10 @@ class QueryGenerator {
...
@@ -599,11 +599,10 @@ class QueryGenerator {
const
fieldsSql
=
options
.
fields
.
map
(
field
=>
{
const
fieldsSql
=
options
.
fields
.
map
(
field
=>
{
if
(
typeof
field
===
'string'
)
{
if
(
typeof
field
===
'string'
)
{
return
this
.
quoteIdentifier
(
field
);
return
this
.
quoteIdentifier
(
field
);
}
else
if
(
field
.
_isSequelizeMethod
)
{
}
if
(
field
instanceof
Utils
.
SequelizeMethod
)
{
return
this
.
handleSequelizeMethod
(
field
);
return
this
.
handleSequelizeMethod
(
field
);
}
else
{
}
let
result
=
''
;
if
(
field
.
attribute
)
{
if
(
field
.
attribute
)
{
field
.
name
=
field
.
attribute
;
field
.
name
=
field
.
attribute
;
}
}
...
@@ -612,9 +611,7 @@ class QueryGenerator {
...
@@ -612,9 +611,7 @@ class QueryGenerator {
throw
new
Error
(
`The following index field has no name:
${
field
}
`
);
throw
new
Error
(
`The following index field has no name:
${
field
}
`
);
}
}
result
+=
this
.
quoteIdentifier
(
field
.
name
);
return
this
.
quoteIdentifier
(
field
.
name
);
return
result
;
}
});
});
const
fieldsSqlQuotedString
=
fieldsSql
.
join
(
', '
);
const
fieldsSqlQuotedString
=
fieldsSql
.
join
(
', '
);
...
...
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