Skip to content

Commit

Permalink
fix(mssql): IDENTITY columns not detected outside default schema
Browse files Browse the repository at this point in the history
Fixes dimitri#1586

Co-Authored-By: Nathanael Ruf <[email protected]>
  • Loading branch information
gnarlex and nathanael-ruf committed Jul 6, 2024
1 parent 29afa9d commit 74457f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sources/mssql/sql/list-all-columns.sql
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
ELSE c.COLUMN_DEFAULT
END,
c.IS_NULLABLE,
COLUMNPROPERTY(object_id(c.TABLE_NAME), c.COLUMN_NAME, 'IsIdentity'),
COLUMNPROPERTY(OBJECT_ID(c.TABLE_SCHEMA + '.' + c.TABLE_NAME), c.COLUMN_NAME, 'IsIdentity'),
c.CHARACTER_MAXIMUM_LENGTH,
c.NUMERIC_PRECISION,
c.NUMERIC_PRECISION_RADIX,
Expand Down

0 comments on commit 74457f4

Please sign in to comment.