Skip to content

Commit

Permalink
Queries to find indexes are schema queries
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanharan committed Sep 25, 2023
1 parent d7d473e commit fe0a7d0
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 fe0a7d0

Please sign in to comment.