Skip to content

Commit

Permalink
Update mssql-introspector.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
tmrclark committed Jan 17, 2024
1 parent 3df726f commit 30790c2
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 @@ -90,8 +90,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 @@ -202,6 +202,7 @@ interface MssqlSysTables {
// precision: number
// rule_object_id: number
// scale: number
user_type_id: number
system_type_id: number
}
'sys.schemas': {
Expand Down Expand Up @@ -274,7 +275,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 30790c2

Please sign in to comment.