ruby-oci8 2.2.0.2-x86-mingw32 → 2.2.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
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
 
data/lib/oci8/bindtype.rb CHANGED
@@ -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
 
data/lib/oci8/oci8.rb CHANGED
@@ -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.
data/lib/oci8/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class OCI8
2
- VERSION = "2.2.0.2"
2
+ VERSION = "2.2.1"
3
3
  end
data/lib/oci8lib_191.so CHANGED
Binary file
data/lib/oci8lib_200.so CHANGED
Binary file
data/lib/oci8lib_210.so CHANGED
Binary file
data/lib/oci8lib_220.so CHANGED
Binary file
data/test/test_all.rb CHANGED
@@ -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,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-oci8
3
3
  version: !ruby/object:Gem::Version
4
- hash: 123
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 2
9
- - 0
10
- - 2
11
- version: 2.2.0.2
9
+ - 1
10
+ version: 2.2.1
12
11
  platform: x86-mingw32
13
12
  authors:
14
13
  - Kubo Takehiro
@@ -16,7 +15,7 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2015-10-12 00:00:00 +09:00
18
+ date: 2015-11-01 00:00:00 +09:00
20
19
  default_executable:
21
20
  dependencies: []
22
21