Oracle: active? performs a select instead of a commit. References #3133.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3252 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper 2005-12-08 07:27:48 +00:00
parent 32b27f997b
commit 57838bd4c6
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
*SVN*
* Oracle: active? performs a select instead of a commit. #3133 [Michael Schoen]
* MySQL: more robust test for nullified result hashes. #3124 [Stefan Kaes]
* SQLite: find database file when RAILS_ROOT is a symlink. #3116 [anna@wota.jp]

View File

@ -550,7 +550,7 @@ begin
# checks the connection, while #active? simply returns the last
# known state.
def ping
@connection.commit
@connection.exec("select 1 from dual") { |r| nil }
@active = true
rescue
@active = false