We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2604ee commit ce182e4Copy full SHA for ce182e4
lib/active_record/connection_adapters/mysql2_annotator_adapter.rb
@@ -43,9 +43,17 @@ def annotation=(value)
43
annotation_comment
44
end
45
46
- def execute(sql, name = nil)
47
- sql = annotation_comment + sql unless @annotation.nil?
48
- super
+ if ActiveRecord::VERSION::MAJOR >= 7
+ # see activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:202
+ def execute(sql, name = nil, async: false)
49
+ sql = annotation_comment + sql unless @annotation.nil?
50
+ super
51
+ end
52
+ else
53
+ def execute(sql, name = nil)
54
55
56
57
58
59
private
0 commit comments