Skip to content

Commit 950d13f

Browse files
authored
Use OCI driver type for RUBY_ENGINE TruffleRuby (#190)
1 parent b1c41a4 commit 950d13f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/plsql/connection.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ def self.create_new(params) #:nodoc:
3737
end
3838

3939
def self.driver_type #:nodoc:
40-
# MRI 1.8.6 or YARV 1.9.1
41-
@driver_type ||= if (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby") && defined?(OCI8)
40+
# MRI 1.8.6 or YARV 1.9.1 or TruffleRuby
41+
@driver_type ||= if (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby" || RUBY_ENGINE == "truffleruby") && defined?(OCI8)
4242
:oci
4343
# JRuby
4444
elsif (defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby")

0 commit comments

Comments
 (0)