Skip to content

Commit 5608e7b

Browse files
authored
Merge pull request rails#53877 from zzak/mysql-warnings-test
Fix handle_warnings with mysql2 master
2 parents 410ad1c + d796fe3 commit 5608e7b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,6 @@ def extended_type_map_key
762762
def handle_warnings(sql)
763763
return if ActiveRecord.db_warnings_action.nil? || @raw_connection.warning_count == 0
764764

765-
@affected_rows_before_warnings = @raw_connection.affected_rows
766765
warning_count = @raw_connection.warning_count
767766
result = @raw_connection.query("SHOW WARNINGS")
768767
result = [

0 commit comments

Comments
 (0)