We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@raw_connection
1 parent 46af71e commit f492ea5Copy full SHA for f492ea5
lib/plsql/oci_connection.rb
@@ -289,7 +289,11 @@ def raw_oci_connection
289
# ActiveRecord Oracle enhanced adapter puts OCI8EnhancedAutoRecover wrapper around OCI8
290
# in this case we need to pass original OCI8 connection
291
else
292
- raw_connection.instance_variable_get(:@connection)
+ if raw_connection.instance_variable_defined?(:@raw_connection)
293
+ raw_connection.instance_variable_get(:@raw_connection)
294
+ else
295
+ raw_connection.instance_variable_get(:@connection)
296
+ end
297
end
298
299
0 commit comments