Skip to content

Commit fdf82ae

Browse files
authored
Merge pull request #148 from praveen-db2/master
To Support Ruby3.1 on Windows
2 parents 0c90533 + ef84d45 commit fdf82ae

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

IBM_DB_Adapter/ibm_db/lib/mswin32/ibm_db.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,10 @@ def unzipCLIPackage(archive, destination)
8787
if machine_bits == 64
8888
raise NotImplementedError, "ibm_db with Ruby 64-bit on Windows platform is not supported. Refer to README for more details"
8989
else
90-
if (RUBY_VERSION =~ /3/)
90+
if (RUBY_VERSION =~ /3.0/)
9191
require 'rb3x/i386/ruby30/ibm_db.so'
92+
elsif (RUBY_VERSION =~ /3.1/)
93+
require 'rb3x/i386/ruby31/ibm_db.so'
9294
elsif (RUBY_VERSION =~ /2.7/)
9395
require 'rb2x/i386/ruby27/ibm_db.so'
9496
elsif (RUBY_VERSION =~ /2.6/)

0 commit comments

Comments
 (0)