We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b6d0fb commit cde4191Copy full SHA for cde4191
1 file changed
lib/plsql/oci_connection.rb
@@ -15,10 +15,9 @@
15
end
16
17
# check ruby-oci8 version
18
-required_oci8_version = [2, 1, 0]
19
-oci8_version_ints = OCI8::VERSION.scan(/\d+/).map { |s| s.to_i }
20
-if (oci8_version_ints <=> required_oci8_version) < 0
21
- raise LoadError, "ERROR: ruby-oci8 version #{OCI8::VERSION} is too old. Please install ruby-oci8 version #{required_oci8_version.join('.')} or later."
+required_oci8_version = "2.1.0"
+if Gem::Version.new(OCI8::VERSION) < Gem::Version.new(required_oci8_version)
+ raise LoadError, "ERROR: ruby-oci8 version #{OCI8::VERSION} is too old. Please install ruby-oci8 version #{required_oci8_version} or later."
22
23
24
module PLSQL
0 commit comments