Skip to content

Commit 50a0654

Browse files
authored
Merge pull request #220 from yahonda/diag
Rename the raw connection ivar to `@raw_connection`
2 parents 4d2b803 + f492ea5 commit 50a0654

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/plsql/oci_connection.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,11 @@ def raw_oci_connection
289289
# ActiveRecord Oracle enhanced adapter puts OCI8EnhancedAutoRecover wrapper around OCI8
290290
# in this case we need to pass original OCI8 connection
291291
else
292-
raw_connection.instance_variable_get(:@connection)
292+
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
293297
end
294298
end
295299

0 commit comments

Comments
 (0)