Skip to content

Commit e24ec67

Browse files
committed
Fix method signature
1 parent 98505fe commit e24ec67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_record/connection_adapters/sqlserver_adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def initialize_type_map(m = type_map)
325325
m.register_type 'timestamp', SQLServer::Type::Timestamp.new
326326
end
327327

328-
def translate_exception(e, message)
328+
def translate_exception(e, message:, sql:, binds:)
329329
case message
330330
when /(cannot insert duplicate key .* with unique index) | (violation of unique key constraint)/i
331331
RecordNotUnique.new(message)

0 commit comments

Comments
 (0)