aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
diff options
context:
space:
mode:
authorNick Sieger <nick@nicksieger.com>2008-09-04 15:35:55 +0200
committerJeremy Kemper <jeremy@bitsweat.net>2008-09-04 15:45:00 +0200
commit0d9e238cc938c96708d36bbd2cd4736e9ec93a1e (patch)
tree9d219f5447207e61da4cfd187e8d60df8966a058 /activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
parenta3f12f575d4bf216a15188ecab2d26a11162bc3b (diff)
downloadrails-0d9e238cc938c96708d36bbd2cd4736e9ec93a1e.tar.gz
rails-0d9e238cc938c96708d36bbd2cd4736e9ec93a1e.tar.bz2
rails-0d9e238cc938c96708d36bbd2cd4736e9ec93a1e.zip
Remove flawed execute("ROLLBACK") approach; #reset! defaults to nothing
Will need community help to fill out what #reset! should do for each adapter Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract_adapter.rb')
-rwxr-xr-xactiverecord/lib/active_record/connection_adapters/abstract_adapter.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
index ad6e2171d1..14dde57fa5 100755
--- a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
@@ -112,9 +112,7 @@ module ActiveRecord
# ROLLBACK and swallows any exceptions which is probably not enough to
# ensure the connection is clean.
def reset!
- silence_stderr do # postgres prints on stderr when you do this w/o a txn
- execute "ROLLBACK" rescue nil
- end
+ # this should be overridden by concrete adapters
end
# Returns true if its safe to reload the connection between requests for development mode.