ruby-oci8 2.2.0.2-x64-mingw32 → 2.2.1-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 960a6df7bd2ffab57c2af22fc209676dc98610c3
4
- data.tar.gz: a00f38a72a7e36ed84722281496a9b3fcd644285
3
+ metadata.gz: e4b6c04253d87f2058002ec27e981532db05839c
4
+ data.tar.gz: e3bcfc65089d661cffdb01f82807cf46eeb9a30b
5
5
  SHA512:
6
- metadata.gz: 5fd1e8cecef1149ebd6ad661071413146cb8658d5819805a2f380a429bb221805b0e6dc2994c97773c2d578b4706e622fde9d55ea8fb4ed37fee939ef188f423
7
- data.tar.gz: 061c0572fa7036291132893a8728672afed7a91bf6f5ddb9c3c00b881eb0b20facb77b7fa4e58d865fadf5183c533832bca3d73bb4811ec889099e5e81408d7a
6
+ metadata.gz: 6af20329cf25105ea8d2a04c440d7240e68110e465373f7f9c95ce0bd430b91dd61d8118dab31a50ec65998001651a50343fd4e88b18483044c4aee39ae24bac
7
+ data.tar.gz: e6d9dc806f41bd5ba7366c1703e43977e75cf4117995d0021d884c22b2b987918c8302df64c6200561359e29f9ef5c0b501f73db78824524a1fa9fb1bedf1f61
data/ChangeLog CHANGED
@@ -1,3 +1,42 @@
1
+ 2015-11-01 Kubo Takehiro <kubo@jiubao.org>
2
+ * NEWS: Add changes between 2.2.0.2 and 2.2.1.
3
+ * lib/oci8/version.rb: update to 2.2.1.
4
+
5
+ 2015-11-01 Kubo Takehiro <kubo@jiubao.org>
6
+ * ext/oci8/extconf.rb, ext/oci8/oci8.h: Delete unnecessary checks.
7
+ * ext/oci8/oraconf.rb: Reduce time to build an import library on
8
+ Mingw32 and Cygwin.
9
+
10
+ 2015-11-01 Kubo Takehiro <kubo@jiubao.org>
11
+ * lib/oci8/oci8.rb: delete code for Oracle 8i.
12
+
13
+ 2015-10-26 Kubo Takehiro <kubo@jiubao.org>
14
+ * ext/oci8/oci8lib.c: Fix handle leaks when OCI8#ping is used and
15
+ the Oracle client version is 10gR1.
16
+ This bug was introduced in ruby-oci8 2.2.0.
17
+
18
+ 2015-10-26 Kubo Takehiro <kubo@jiubao.org>
19
+ * ext/oci8/oci8lib.c: Revive code dropped in ruby-oci8 2.2.0.
20
+ This prevents potential SEGV on ruby process termination.
21
+
22
+ 2015-10-26 Kubo Takehiro <kubo@jiubao.org>
23
+ * ext/oci8/ocinumber.c: Drop code for ruby 1.8.
24
+ Rational has been a built-in type since ruby 1.9.
25
+
26
+ 2015-10-20 Kubo Takehiro <kubo@jiubao.org>
27
+ * ext/oci8/bind.c, lib/oci8/bindtype.rb, test/test_all.rb,
28
+ test/test_bind_boolean.rb: Support boolean type binding.
29
+
30
+ 2015-10-19 Kubo Takehiro <kubo@jiubao.org>
31
+ * ext/oci8/apiwrap.yml: Delete unused OCI function definitions.
32
+
33
+ 2015-10-19 Kubo Takehiro <kubo@jiubao.org>
34
+ * ext/oci8/extconf.rb: Use macros OCI_MAJOR_VERSION and OCI_MINOR_VERSION
35
+ in oci.h to check the target Oracle client version.
36
+
37
+ 2015-10-12 Kubo Takehiro <kubo@jiubao.org>
38
+ * NEWS: Add changes between 2.2.0.1 and 2.2.0.2.
39
+
1
40
  2015-10-12 Kubo Takehiro <kubo@jiubao.org>
2
41
  * lib/oci8/version.rb: Update the version to 2.2.0.2 to
3
42
  release binary gems for mingw32.
data/NEWS CHANGED
@@ -1,10 +1,47 @@
1
1
  # @markup markdown
2
2
 
3
+ 2.2.1
4
+ =====
5
+
6
+ New Features
7
+ ------------
8
+
9
+ ### Add OCI8::Metadata::Boolean
10
+
11
+ Support boolean type binding. This feature requires Oracle 12c client and server.
12
+ This doens't work when either Oracle server or client is 11g or lower.
13
+
14
+ Fixed Issues
15
+ ------------
16
+
17
+ The following two issues were introduced in ruby-oci8 2.2.0.
18
+
19
+ ### Fix handle leaks in OCI8#ping
20
+
21
+ This bug affects Oracle 10gR1 client only.
22
+
23
+ ### Fix potential segmentation fault on ruby process termination
24
+
25
+ Other Changes
26
+ -------------
27
+
28
+ - Reduce compilation time by dropping unnecessary checks.
29
+
30
+ - Delete unused code which was added to support old Oracle and ruby 1.8.
31
+
32
+ 2.2.0.2
33
+ =======
34
+
35
+ Nothing was changed except the version.
36
+
37
+ The forth version was incremented to release binary gems for mingw32.
38
+ The binary gems for 2.2.0.1 didn't work by faultily packaging.
39
+
3
40
  2.2.0.1
4
41
  =======
5
42
 
6
43
  If ruby-oci8 2.2.0 is installed, you have no need to update it to
7
- 2.2.0.1. Source code itself was not chaned between 2.2.0 and 2.2.0.1.
44
+ 2.2.0.1. Source code itself was not changed between 2.2.0 and 2.2.0.1.
8
45
 
9
46
  ### Change the required ruby version in the ruby-oci8 gem
10
47
 
@@ -216,6 +216,10 @@ OCI8::BindType::Mapping[OCI8::NCLOB] = OCI8::BindType::NCLOB
216
216
  OCI8::BindType::Mapping[OCI8::BLOB] = OCI8::BindType::BLOB
217
217
  OCI8::BindType::Mapping[OCI8::BFILE] = OCI8::BindType::BFILE
218
218
  OCI8::BindType::Mapping[OCI8::Cursor] = OCI8::BindType::Cursor
219
+ if defined? OCI8::BindType::Boolean
220
+ OCI8::BindType::Mapping[TrueClass] = OCI8::BindType::Boolean
221
+ OCI8::BindType::Mapping[FalseClass] = OCI8::BindType::Boolean
222
+ end
219
223
 
220
224
  # implicitly define
221
225
 
@@ -351,22 +351,7 @@ class OCI8
351
351
  # @see OCI8.oracle_client_version
352
352
  # @return [OCI8::OracleVersion]
353
353
  def oracle_server_version
354
- unless defined? @oracle_server_version
355
- if vernum = oracle_server_vernum
356
- # If the Oracle client is Oracle 9i or upper,
357
- # get the server version from the OCI function OCIServerRelease.
358
- @oracle_server_version = OCI8::OracleVersion.new(vernum)
359
- else
360
- # Otherwise, get it from v$version.
361
- self.exec('select banner from v$version') do |row|
362
- if /^Oracle.*?(\d+\.\d+\.\d+\.\d+\.\d+)/ =~ row[0]
363
- @oracle_server_version = OCI8::OracleVersion.new($1)
364
- break
365
- end
366
- end
367
- end
368
- end
369
- @oracle_server_version
354
+ @oracle_server_version ||= OCI8::OracleVersion.new(oracle_server_vernum)
370
355
  end
371
356
 
372
357
  # Returns the Oracle database character set name such as AL32UTF8.
@@ -1,3 +1,3 @@
1
1
  class OCI8
2
- VERSION = "2.2.0.2"
2
+ VERSION = "2.2.1"
3
3
  end
Binary file
Binary file
Binary file
@@ -31,6 +31,7 @@ end
31
31
 
32
32
  if $oracle_version >= OCI8::ORAVER_12_1
33
33
  require "#{srcdir}/test_package_type"
34
+ require "#{srcdir}/test_bind_boolean.rb"
34
35
  end
35
36
 
36
37
  # Ruby/DBI
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-oci8
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0.2
4
+ version: 2.2.1
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Kubo Takehiro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-12 00:00:00.000000000 Z
11
+ date: 2015-11-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  ruby-oci8 is a ruby interface for Oracle using OCI8 API. It is available with Oracle 10g or later including Oracle Instant Client.