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 4daf5224
authored
Mar 15, 2018
by
Jaime Pillora
Committed by
Sushant
Mar 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(mssql/describeTable): include auto increment flag (#9171)
1 parent
83dfc5ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
lib/dialects/mssql/query-generator.js
lib/dialects/mssql/query.js
lib/dialects/mssql/query-generator.js
View file @
4daf522
...
@@ -157,7 +157,8 @@ const QueryGenerator = {
...
@@ -157,7 +157,8 @@ const QueryGenerator = {
"c.CHARACTER_MAXIMUM_LENGTH AS 'Length',"
,
"c.CHARACTER_MAXIMUM_LENGTH AS 'Length',"
,
"c.IS_NULLABLE as 'IsNull',"
,
"c.IS_NULLABLE as 'IsNull',"
,
"COLUMN_DEFAULT AS 'Default',"
,
"COLUMN_DEFAULT AS 'Default',"
,
"pk.CONSTRAINT_TYPE AS 'Constraint'"
,
"pk.CONSTRAINT_TYPE AS 'Constraint',"
,
"COLUMNPROPERTY(OBJECT_ID(c.TABLE_SCHEMA+'.'+c.TABLE_NAME), c.COLUMN_NAME, 'IsIdentity') as 'IsIdentity'"
,
'FROM'
,
'FROM'
,
'INFORMATION_SCHEMA.TABLES t'
,
'INFORMATION_SCHEMA.TABLES t'
,
'INNER JOIN'
,
'INNER JOIN'
,
...
...
lib/dialects/mssql/query.js
View file @
4daf522
...
@@ -205,7 +205,8 @@ class Query extends AbstractQuery {
...
@@ -205,7 +205,8 @@ class Query extends AbstractQuery {
type
:
_result
.
Type
.
toUpperCase
(),
type
:
_result
.
Type
.
toUpperCase
(),
allowNull
:
_result
.
IsNull
===
'YES'
?
true
:
false
,
allowNull
:
_result
.
IsNull
===
'YES'
?
true
:
false
,
defaultValue
:
_result
.
Default
,
defaultValue
:
_result
.
Default
,
primaryKey
:
_result
.
Constraint
===
'PRIMARY KEY'
primaryKey
:
_result
.
Constraint
===
'PRIMARY KEY'
,
autoIncrement
:
_result
.
IsIdentity
===
1
};
};
}
}
}
else
if
(
this
.
isShowIndexesQuery
())
{
}
else
if
(
this
.
isShowIndexesQuery
())
{
...
...
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