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 361fe599
authored
Oct 15, 2017
by
Sushant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(query): properly return for FOREIGNKEYS type
1 parent
a6c1f8f9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
lib/dialects/mssql/query.js
lib/dialects/mysql/query.js
lib/dialects/mssql/query.js
View file @
361fe59
...
...
@@ -235,7 +235,7 @@ class Query extends AbstractQuery {
}
else
if
(
this
.
isVersionQuery
())
{
result
=
data
[
0
].
version
;
}
else
if
(
this
.
isForeignKeysQuery
())
{
result
=
data
;
result
=
[
data
]
;
}
else
if
(
this
.
isInsertQuery
()
||
this
.
isUpdateQuery
())
{
result
=
[
result
,
rowCount
];
}
else
if
(
this
.
isShowConstraintsQuery
())
{
...
...
lib/dialects/mysql/query.js
View file @
361fe59
...
...
@@ -138,7 +138,7 @@ class Query extends AbstractQuery {
}
else
if
(
this
.
isVersionQuery
())
{
result
=
data
[
0
].
version
;
}
else
if
(
this
.
isForeignKeysQuery
())
{
result
=
data
;
result
=
[
data
]
;
}
else
if
(
this
.
isInsertQuery
()
||
this
.
isUpdateQuery
())
{
result
=
[
result
,
data
.
affectedRows
];
}
else
if
(
this
.
isShowConstraintsQuery
())
{
...
...
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