instance method
handle_warnings
Ruby on Rails 8.1.4
Since v7.1.6 Last seen in v8.1.4 Private — implementation detail, not part of the public APISignature
handle_warnings(result, sql)
No documentation comment.
Parameters
-
resultreq -
sqlreq
Source
# File activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb, line 210
def handle_warnings(result, sql)
warnings, @notice_receiver_sql_warnings = @notice_receiver_sql_warnings, []
warnings.each do |warning|
next if warning_ignored?(warning)
warning.sql = sql
ActiveRecord.db_warnings_action.call(warning)
end
end
Defined in activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb line 210
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::PostgreSQL::DatabaseStatements