Skip to content

Commit

Permalink
Merge in 'release/7.0' changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dotnet-bot committed Jul 6, 2023
2 parents 55c77de + c8b267d commit 2669b8e
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,11 @@ FROM [sys].[views] AS [v]
GetColumns(connection, tables, filter, viewFilter, typeAliases, databaseCollation);
GetIndexes(connection, tables, filter);
GetForeignKeys(connection, tables, filter);
GetTriggers(connection, tables, filter);

if (SupportsTriggers())
{
GetTriggers(connection, tables, filter);
}

foreach (var table in tables)
{
Expand Down Expand Up @@ -1343,6 +1347,9 @@ private bool SupportsMemoryOptimizedTable()
private bool SupportsSequences()
=> _compatibilityLevel >= 110 && _engineEdition != 6;

private bool SupportsTriggers()
=> _engineEdition != 6;

private static string DisplayName(string? schema, string name)
=> (!string.IsNullOrEmpty(schema) ? schema + "." : "") + name;

Expand Down

0 comments on commit 2669b8e

Please sign in to comment.