diff options
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/oci_adapter.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/oci_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/oci_adapter.rb b/activerecord/lib/active_record/connection_adapters/oci_adapter.rb index b14ab571f2..01e3d4dff3 100644 --- a/activerecord/lib/active_record/connection_adapters/oci_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/oci_adapter.rb @@ -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 |