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 ed9e98cf
authored
Oct 28, 2014
by
overlookmotel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add table name to order/group clause
1 parent
05426e62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
lib/dialects/abstract/query-generator.js
lib/dialects/abstract/query-generator.js
View file @
ed9e98c
...
...
@@ -574,7 +574,7 @@ module.exports = (function() {
}
// add 1st string as quoted, 2nd as unquoted raw
var
sql
=
(
i
>
0
?
this
.
quoteIdentifier
(
tableNames
.
join
(
'.'
))
+
'.'
:
''
)
+
this
.
quote
(
obj
[
i
],
parent
,
force
);
var
sql
=
(
i
>
0
?
this
.
quoteIdentifier
(
tableNames
.
join
(
'.'
))
+
'.'
:
(
Utils
.
_
.
isString
(
obj
[
0
])
?
this
.
quoteIdentifier
(
parent
.
name
)
+
'.'
:
''
)
)
+
this
.
quote
(
obj
[
i
],
parent
,
force
);
if
(
i
<
len
-
1
)
{
sql
+=
' '
+
obj
[
i
+
1
];
}
...
...
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