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 777ec098
authored
May 03, 2020
by
Juarez Lustosa
Committed by
GitHub
May 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(mssql): use uppercase for engine table and columns (#12212)
1 parent
5a4d2600
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
lib/dialects/mssql/query-generator.js
lib/dialects/mssql/query-generator.js
View file @
777ec09
...
...
@@ -201,12 +201,12 @@ class MSSQLQueryGenerator extends AbstractQueryGenerator {
'INNER JOIN'
,
'INFORMATION_SCHEMA.COLUMNS c ON t.TABLE_NAME = c.TABLE_NAME AND t.TABLE_SCHEMA = c.TABLE_SCHEMA'
,
'LEFT JOIN (SELECT tc.table_schema, tc.table_name, '
,
'cu.column_name, tc.
constraint_type
'
,
'FROM
information_schema
.TABLE_CONSTRAINTS tc '
,
'JOIN
information_schema
.KEY_COLUMN_USAGE cu '
,
'cu.column_name, tc.
CONSTRAINT_TYPE
'
,
'FROM
INFORMATION_SCHEMA
.TABLE_CONSTRAINTS tc '
,
'JOIN
INFORMATION_SCHEMA
.KEY_COLUMN_USAGE cu '
,
'ON tc.table_schema=cu.table_schema and tc.table_name=cu.table_name '
,
'and tc.constraint_name=cu.constraint_name '
,
'and tc.
constraint_type
=\'PRIMARY KEY\') pk '
,
'and tc.
CONSTRAINT_TYPE
=\'PRIMARY KEY\') pk '
,
'ON pk.table_schema=c.table_schema '
,
'AND pk.table_name=c.table_name '
,
'AND pk.column_name=c.column_name '
,
...
...
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