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 8a3827d0
authored
May 14, 2020
by
Arnaud MONCEL
Committed by
GitHub
May 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(mssql): use uppercase for engine table and columns (#12253)
1 parent
d865b248
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 @
8a3827d
...
@@ -193,12 +193,12 @@ class MSSQLQueryGenerator extends AbstractQueryGenerator {
...
@@ -193,12 +193,12 @@ class MSSQLQueryGenerator extends AbstractQueryGenerator {
'INNER JOIN'
,
'INNER JOIN'
,
'INFORMATION_SCHEMA.COLUMNS c ON t.TABLE_NAME = c.TABLE_NAME AND t.TABLE_SCHEMA = c.TABLE_SCHEMA'
,
'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, '
,
'LEFT JOIN (SELECT tc.table_schema, tc.table_name, '
,
'cu.column_name, tc.
constraint_type
'
,
'cu.column_name, tc.
CONSTRAINT_TYPE
'
,
'FROM
information_schema
.TABLE_CONSTRAINTS tc '
,
'FROM
INFORMATION_SCHEMA
.TABLE_CONSTRAINTS tc '
,
'JOIN
information_schema
.KEY_COLUMN_USAGE cu '
,
'JOIN
INFORMATION_SCHEMA
.KEY_COLUMN_USAGE cu '
,
'ON tc.table_schema=cu.table_schema and tc.table_name=cu.table_name '
,
'ON tc.table_schema=cu.table_schema and tc.table_name=cu.table_name '
,
'and tc.constraint_name=cu.constraint_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 '
,
'ON pk.table_schema=c.table_schema '
,
'AND pk.table_name=c.table_name '
,
'AND pk.table_name=c.table_name '
,
'AND pk.column_name=c.column_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