Skip to content

Commit

Permalink
Disable trigger enumeration on Azure Synapse Analytics, where trigger…
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Ejlskov Jensen committed Jun 6, 2023
1 parent 3e87774 commit f09f12b
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 f09f12b

Please sign in to comment.