Skip to content

Commit

Permalink
Update mssql-introspector.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
tmrclark authored and koskimas committed Jan 20, 2024
1 parent cd918dc commit 8017815
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/dialect/mssql/mssql-introspector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export class MssqlIntrospector implements DatabaseIntrospector {
)
.innerJoin(
'sys.types as types',
'types.system_type_id',
'columns.system_type_id'
'types.user_type_id',
'columns.user_type_id'
)
.leftJoin(
'sys.schemas as type_schemas',
Expand Down Expand Up @@ -98,8 +98,8 @@ export class MssqlIntrospector implements DatabaseIntrospector {
)
.innerJoin(
'sys.types as types',
'types.system_type_id',
'columns.system_type_id'
'types.user_type_id',
'columns.user_type_id'
)
.leftJoin(
'sys.schemas as type_schemas',
Expand Down Expand Up @@ -219,6 +219,7 @@ interface MssqlSysTables {
// precision: number
// rule_object_id: number
// scale: number
user_type_id: number
system_type_id: number
}
'sys.extended_properties': {
Expand Down Expand Up @@ -297,7 +298,7 @@ interface MssqlSysTables {
// scale: number
schema_id: number
system_type_id: number
// user_type_id: number
user_type_id: number
}
'sys.views': {
// create_date: Date
Expand Down

0 comments on commit 8017815

Please sign in to comment.