Skip to content

Commit 6ead58b

Browse files
kamipowpolicarpo
authored andcommitted
Remove table and column which are no longer passed to case_sensitive_comparison
Follow up to rails/rails@eb5fef5.
1 parent 027ecb3 commit 6ead58b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/active_record/connection_adapters/sqlserver/database_statements.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,11 @@ def exec_rollback_to_savepoint(name = current_savepoint_name)
7171
def release_savepoint(name = current_savepoint_name)
7272
end
7373

74-
def case_sensitive_comparison(table, attribute, column, value)
74+
def case_sensitive_comparison(attribute, value)
75+
column = column_for_attribute(attribute)
76+
7577
if column.collation && !column.case_sensitive?
76-
table[attribute].eq(Arel::Nodes::Bin.new(value))
78+
attribute.eq(Arel::Nodes::Bin.new(value))
7779
else
7880
super
7981
end

0 commit comments

Comments
 (0)