Skip to content

Commit

Permalink
Update SqlServerFunctionModelFactory.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
barnuri authored Oct 10, 2024
1 parent 5fc63ef commit c5d4ce7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ protected override List<List<ModuleResultElement>> GetResultElementLists(SqlConn
c.column_id AS column_ordinal,
c.is_nullable
FROM sys.columns c
left JOIN sys.types AS tu ON c.user_type_id = tu.user_type_id
left JOIN sys.types AS ts ON c.system_type_id = ts.system_type_id
inner join sys.types tu ON c.user_type_id = tu.user_type_id
inner join sys.objects AS o on o.object_id = c.object_id
inner JOIN sys.schemas AS s ON o.schema_id = s.schema_id
LEFT JOIN sys.types ts ON tu.system_type_id = ts.user_type_id
where o.name = '{module.Name}' and s.name = '{module.Schema}';";

#pragma warning disable CA2100 // Review SQL queries for security vulnerabilities
Expand Down

0 comments on commit c5d4ce7

Please sign in to comment.