ruby-oci8 2.2.12-x86-mingw32 → 2.2.13-x86-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 631ba8e42861f615caee28df738ede602aaa3977c05cc601b353516ce5810f6c
4
- data.tar.gz: 589d194f03b126fd6a0f2efbaf384533c69db981832ff7b7e10ae869a9a64186
3
+ metadata.gz: 6b0b6f9bb8b9588742efbb2f5f78ae6000d2d0ac1e523422e757e4f0a1e59de4
4
+ data.tar.gz: f590a456747b0d31222c244090ae8335c809ac8d07028560d7d34902dc0bc79f
5
5
  SHA512:
6
- metadata.gz: 774e9ab8bb6d62d6b0b0e87131d09a686a4b35f1889c7575ae0d6f30b8bc28b499c2d88b9a99bba32b2dda8af7cb4b0e06249dc720f7393f84f931972548cf3b
7
- data.tar.gz: fd4ca300d276aae13817e0fd9fc5166ac2dbf65e61e23a6a0687295501c0f5d05862aefa4c2c034934d21aadc80c310955dbd6449edc80df8603defba4eda322
6
+ metadata.gz: 1bb00dafa4a6c528d6742fbd680668a1759d9ac42dcf14083215ccd123bfa33f40e1fa01ba134453216e3427d8cc8b4d0338bba31028ad1fd048c42d7741da4d
7
+ data.tar.gz: 81d67e0b1842b9bf0fb342121f2558958c5c03189f72cd7b61432e4bcb47b68638a8261d1d00a737a3d3b27db748098317639168a2805aebd24d52b1b45087de
data/NEWS CHANGED
@@ -1,5 +1,23 @@
1
1
  # @markup markdown
2
2
 
3
+ 2.2.13 (2024-07-27)
4
+ ===================
5
+
6
+ - Binary gems for Windows x64 and x86 supports ruby 2.7 - 3.3 inclusive.
7
+
8
+ Fixed issues
9
+ ------------
10
+
11
+ - Fix various issues about `OCI8.properties[:tcp_keepalive_time]` on macOS arm64. The feature was removed on the platform
12
+ and it raises `NotImplementedError` instead now.
13
+ - Fix SIGSEGV when using truffleruby. It seems to be caused by `xfree()` outside of ruby threads.
14
+
15
+ Changes
16
+ -------
17
+
18
+ - Change the format of fifth numeral of Oracle version number as two digit zero-padding number
19
+ when the Oracle version is 23 or upper. For example "23.4.0.24.05".
20
+
3
21
  2.2.12 (2022-12-30)
4
22
  ===================
5
23
 
@@ -39,7 +39,7 @@ by the `tcp_keepalive_time` property.
39
39
  It is supported on the following platforms since ruby-oci8 2.2.4.
40
40
 
41
41
  * Linux i386 and x86_64
42
- * macOS
42
+ * macOS x86_64
43
43
  * Windows x86 and x64
44
44
  * Solaris x86_64
45
45
 
@@ -127,7 +127,15 @@ class OCI8
127
127
  #
128
128
  # @return [String]
129
129
  def to_s
130
- format('%d.%d.%d.%d.%d', @major, @minor, @update, @patch, @port_update)
130
+ version_format =
131
+ if @major >= 23 && @patch != 0 && @port_update != 0
132
+ # The fifth numeral is the release month (01 through 12) since Oracle 23ai
133
+ # See https://docs.oracle.com/en/database/oracle/oracle-database/23/upgrd/oracle-database-release-numbers.html#GUID-1E2F3945-C0EE-4EB2-A933-8D1862D8ECE2__GUID-704EC7BB-4EEA-4A92-96FC-579B216DCA97
134
+ '%d.%d.%d.%d.%02d'
135
+ else
136
+ '%d.%d.%d.%d.%d'
137
+ end
138
+ format(version_format, @major, @minor, @update, @patch, @port_update)
131
139
  end
132
140
 
133
141
  # Returns true if +self+ and +other+ are the same type and have
data/lib/oci8/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class OCI8
2
- VERSION = "2.2.12"
2
+ VERSION = "2.2.13"
3
3
  end
data/lib/oci8.rb CHANGED
@@ -147,6 +147,8 @@ class OCI8
147
147
  ORAVER_12_1 = OCI8::OracleVersion.new(12, 1)
148
148
  # @private
149
149
  ORAVER_18 = OCI8::OracleVersion.new(18)
150
+ # @private
151
+ ORAVER_23 = OCI8::OracleVersion.new(23)
150
152
 
151
153
  # @private
152
154
  @@oracle_client_version = OCI8::OracleVersion.new(self.oracle_client_vernum)
data/lib/oci8lib_270.so CHANGED
Binary file
data/lib/oci8lib_300.so CHANGED
Binary file
data/lib/oci8lib_310.so CHANGED
Binary file
data/lib/oci8lib_320.so CHANGED
Binary file
Binary file
@@ -1896,6 +1896,7 @@ EOS
1896
1896
  # Get data_size of NCHAR(1) and that of CHAR(1 CHAR).
1897
1897
  # They depend on the database character set and the
1898
1898
  # client character set.
1899
+ drop_table('test_table')
1899
1900
  @conn.exec('CREATE TABLE test_table (nc NCHAR(1), c CHAR(1 CHAR))')
1900
1901
  cursor = @conn.exec("select * from test_table")
1901
1902
  cfrm = cursor.column_metadata[0].data_size # size of NCHAR(1) in bytes
@@ -697,7 +697,9 @@ EOS
697
697
  OraNumber.new(str)
698
698
  flunk("exception expected but none was thrown. test data: " + str)
699
699
  rescue
700
- assert_equal(oraerr.to_s, $!.to_s, "test data: " + str)
700
+ expected_errhead = oraerr.to_s.gsub(/:.*/m, '') # strip chars after ':'
701
+ actual_errhead = $!.to_s.gsub(/:.*/m, '')
702
+ assert_equal(expected_errhead, actual_errhead, "test data: " + str)
701
703
  end
702
704
  end
703
705
  if onum
@@ -47,6 +47,12 @@ class TestPackageType < Minitest::Test
47
47
  end
48
48
 
49
49
  def test_describe_package
50
+ if $oracle_server_version >= OCI8::ORAVER_23
51
+ boolean_type_name = 'BOOLEAN'
52
+ else
53
+ boolean_type_name = 'PL/SQL BOOLEAN'
54
+ end
55
+
50
56
  integer_type_attrs = {
51
57
  :class => OCI8::Metadata::Type,
52
58
  #:typecode => nil,
@@ -127,7 +133,7 @@ class TestPackageType < Minitest::Test
127
133
  #:map_method => nil,
128
134
  #:order_method => nil,
129
135
  :is_invoker_rights? => false,
130
- :name => 'PL/SQL BOOLEAN',
136
+ :name => boolean_type_name,
131
137
  :schema_name => 'SYS',
132
138
  :is_final_type? => true,
133
139
  :is_instantiable_type? => true,
@@ -137,7 +143,7 @@ class TestPackageType < Minitest::Test
137
143
  :package_name => nil,
138
144
  :type_attrs => [],
139
145
  #:type_methods => [],
140
- :inspect => '#<OCI8::Metadata::Type:(0) SYS.PL/SQL BOOLEAN>', # TODO: change to "BOOLEAN"
146
+ :inspect => "#<OCI8::Metadata::Type:(0) SYS.#{boolean_type_name}>",
141
147
  }
142
148
 
143
149
  varchar2_type_attrs = {
@@ -277,7 +283,7 @@ class TestPackageType < Minitest::Test
277
283
  :num_elems => 0,
278
284
  :precision => 0,
279
285
  :scale => 0,
280
- :type_name => 'PL/SQL BOOLEAN',
286
+ :type_name => boolean_type_name,
281
287
  :schema_name => 'SYS',
282
288
  :type_metadata => boolean_type_attrs,
283
289
  :inspect => '#<OCI8::Metadata::Collection: BOOLEAN>',
@@ -444,7 +450,7 @@ class TestPackageType < Minitest::Test
444
450
  :name => 'B',
445
451
  :precision => 0,
446
452
  :scale => 0,
447
- :type_name => 'PL/SQL BOOLEAN',
453
+ :type_name => boolean_type_name,
448
454
  :schema_name => 'SYS',
449
455
  :fsprecision => 0,
450
456
  :lfprecision => 0,
metadata CHANGED
@@ -1,19 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-oci8
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.12
4
+ version: 2.2.13
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Kubo Takehiro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-30 00:00:00.000000000 Z
11
+ date: 2024-07-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'ruby-oci8 is a ruby interface for Oracle using OCI8 API. It is available
14
14
  with Oracle 10g or later including Oracle Instant Client.
15
15
 
16
- '
16
+ '
17
17
  email: kubo@jiubao.org
18
18
  executables: []
19
19
  extensions: []
@@ -59,11 +59,11 @@ files:
59
59
  - lib/oci8/oracle_version.rb
60
60
  - lib/oci8/properties.rb
61
61
  - lib/oci8/version.rb
62
- - lib/oci8lib_260.so
63
62
  - lib/oci8lib_270.so
64
63
  - lib/oci8lib_300.so
65
64
  - lib/oci8lib_310.so
66
65
  - lib/oci8lib_320.so
66
+ - lib/oci8lib_330.so
67
67
  - lib/ruby-oci8.rb
68
68
  - metaconfig
69
69
  - pre-distclean.rb
@@ -112,14 +112,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
112
  requirements:
113
113
  - - ">="
114
114
  - !ruby/object:Gem::Version
115
- version: 2.6.0
115
+ version: 2.7.0
116
116
  required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  requirements:
118
118
  - - ">="
119
119
  - !ruby/object:Gem::Version
120
120
  version: '0'
121
121
  requirements: []
122
- rubygems_version: 3.0.1
122
+ rubygems_version: 3.1.2
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: Ruby interface for Oracle using OCI8 API
data/lib/oci8lib_260.so DELETED
Binary file