Skip to content

Commit

Permalink
Queries to find indexes are schema queries (#1096)
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanharan authored Sep 25, 2023
1 parent 38061fd commit 711339e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def indexes(table_name)
else
name = index[:index_name]
unique = index[:index_description] =~ /unique/
where = select_value("SELECT [filter_definition] FROM sys.indexes WHERE name = #{quote(name)}")
where = select_value("SELECT [filter_definition] FROM sys.indexes WHERE name = #{quote(name)}", "SCHEMA")
orders = {}
columns = []

Expand Down

0 comments on commit 711339e

Please sign in to comment.