diff --git a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb index 52eb982779409301847eb5e6f68d60da3e8334fd..9225d92a44a6a506d7e1f263bd8915d575b19d5e 100755 --- a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb @@ -214,13 +214,7 @@ def log(sql, name) log_info(sql, name, 0) nil end - rescue SystemExit, SignalException, NoMemoryError => e - # Don't re-wrap these exceptions. They are probably not being caused by invalid - # sql, but rather some external stimulus beyond the responsibilty of this code. - # Additionaly, wrapping these exceptions with StatementInvalid would lead to - # meaningful loss of data, such as losing SystemExit#status. - raise e - rescue Exception => e + rescue => e # Log message and raise exception. # Set last_verification to 0, so that connection gets verified # upon reentering the request loop