Skip to content

Commit

Permalink
Enable reverse engineering of an exsiting Azure SQL Datawarehouse dat…
Browse files Browse the repository at this point in the history
…abase

fixes dotnet#15487
  • Loading branch information
ErikEJ committed Apr 27, 2019
1 parent c7564b9 commit edbcab0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -536,12 +536,13 @@ private void GetColumns(
CAST([c].[scale] AS int) AS [scale],
[c].[is_nullable],
[c].[is_identity],
OBJECT_DEFINITION([c].[default_object_id]) AS [default_sql],
[df].[definition] AS [default_sql],
[cc].[definition] AS [computed_sql]
FROM [sys].[columns] AS [c]
JOIN [sys].[tables] AS [t] ON [c].[object_id] = [t].[object_id]
JOIN [sys].[types] AS [tp] ON [c].[user_type_id] = [tp].[user_type_id]
LEFT JOIN [sys].[computed_columns] AS [cc] ON [c].[object_id] = [cc].[object_id] AND [c].[column_id] = [cc].[column_id]
LEFT JOIN [sys].[default_constraints] AS [df] ON [c].[object_id] = [df].[parent_object_id] AND [df].[parent_column_id] = [c].[column_id]
WHERE " + tableFilter;

if (SupportsTemporalTable(connection))
Expand Down

0 comments on commit edbcab0

Please sign in to comment.