ruby-oci8 2.2.5.1-x64-mingw32 → 2.2.9-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/ChangeLog +240 -0
- data/NEWS +190 -50
- data/README.md +1 -1
- data/dist-files +2 -1
- data/docs/install-instant-client.md +2 -1
- data/docs/install-on-osx.md +1 -1
- data/lib/oci8.rb +10 -3
- data/lib/oci8/bindtype.rb +0 -14
- data/lib/oci8/check_load_error.rb +51 -16
- data/lib/oci8/cursor.rb +46 -13
- data/lib/oci8/metadata.rb +9 -1
- data/lib/oci8/object.rb +10 -0
- data/lib/oci8/oci8.rb +7 -1
- data/lib/oci8/oracle_version.rb +11 -1
- data/lib/oci8/version.rb +1 -1
- data/lib/oci8lib_250.so +0 -0
- data/lib/oci8lib_260.so +0 -0
- data/lib/oci8lib_270.so +0 -0
- data/lib/oci8lib_300.so +0 -0
- data/lib/ruby-oci8.rb +0 -3
- data/ruby-oci8.gemspec +1 -2
- data/setup.rb +11 -2
- data/test/README.md +37 -0
- data/test/config.rb +1 -1
- data/test/setup_test_object.sql +21 -13
- data/test/test_all.rb +1 -0
- data/test/test_break.rb +3 -4
- data/test/test_clob.rb +3 -16
- data/test/test_datetime.rb +8 -3
- data/test/test_object.rb +33 -9
- data/test/test_oci8.rb +169 -44
- data/test/test_package_type.rb +15 -3
- data/test/test_properties.rb +17 -0
- metadata +24 -24
- data/lib/oci8lib_200.so +0 -0
- data/lib/oci8lib_210.so +0 -0
- data/lib/oci8lib_220.so +0 -0
- data/lib/oci8lib_230.so +0 -0
- data/lib/oci8lib_240.so +0 -0
- data/test/README +0 -42
data/test/test_package_type.rb
CHANGED
@@ -639,7 +639,11 @@ class TestPackageType < Minitest::Test
|
|
639
639
|
:sub_name => "TABLE_OF_PLS_INTEGER",
|
640
640
|
:link => "",
|
641
641
|
#:type_metadata => nil,
|
642
|
-
:arguments =>
|
642
|
+
:arguments => ($oracle_server_version >= OCI8::ORAVER_18) ?
|
643
|
+
{
|
644
|
+
:class => Array,
|
645
|
+
:size => 0,
|
646
|
+
} : {
|
643
647
|
:class => Array,
|
644
648
|
:size => 1,
|
645
649
|
[0] => {
|
@@ -729,7 +733,11 @@ class TestPackageType < Minitest::Test
|
|
729
733
|
:sub_name => "TABLE_OF_REC1",
|
730
734
|
:link => "",
|
731
735
|
#:type_metadata => nil,
|
732
|
-
:arguments =>
|
736
|
+
:arguments => ($oracle_server_version >= OCI8::ORAVER_18) ?
|
737
|
+
{
|
738
|
+
:class => Array,
|
739
|
+
:size => 0,
|
740
|
+
} : {
|
733
741
|
:class => Array,
|
734
742
|
:size => 1,
|
735
743
|
[0] => {
|
@@ -846,7 +854,11 @@ class TestPackageType < Minitest::Test
|
|
846
854
|
:sub_name => "TABLE_OF_REC1",
|
847
855
|
:link => "",
|
848
856
|
#:type_metadata => nil,
|
849
|
-
:arguments =>
|
857
|
+
:arguments => ($oracle_server_version >= OCI8::ORAVER_18) ?
|
858
|
+
{
|
859
|
+
:class => Array,
|
860
|
+
:size => 0,
|
861
|
+
} : {
|
850
862
|
:class => Array,
|
851
863
|
:size => 1,
|
852
864
|
[0] => {
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'oci8'
|
2
|
+
require File.dirname(__FILE__) + '/config'
|
3
|
+
|
4
|
+
class TestProperties < Minitest::Test
|
5
|
+
def test_tcp_keepalive_time
|
6
|
+
begin
|
7
|
+
oldval = OCI8.properties[:tcp_keepalive_time]
|
8
|
+
begin
|
9
|
+
OCI8.properties[:tcp_keepalive_time] = 600
|
10
|
+
assert(true)
|
11
|
+
ensure
|
12
|
+
OCI8.properties[:tcp_keepalive_time] = oldval
|
13
|
+
end
|
14
|
+
rescue NotImplementedError
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
metadata
CHANGED
@@ -1,24 +1,26 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-oci8
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.9
|
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:
|
11
|
+
date: 2020-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
14
|
-
|
13
|
+
description: 'ruby-oci8 is a ruby interface for Oracle using OCI8 API. It is available
|
14
|
+
with Oracle 10g or later including Oracle Instant Client.
|
15
|
+
|
16
|
+
'
|
15
17
|
email: kubo@jiubao.org
|
16
18
|
executables: []
|
17
19
|
extensions: []
|
18
20
|
extra_rdoc_files:
|
19
21
|
- README.md
|
20
22
|
files:
|
21
|
-
- .yardopts
|
23
|
+
- ".yardopts"
|
22
24
|
- COPYING
|
23
25
|
- COPYING_old
|
24
26
|
- ChangeLog
|
@@ -26,10 +28,6 @@ files:
|
|
26
28
|
- NEWS
|
27
29
|
- README.md
|
28
30
|
- dist-files
|
29
|
-
- metaconfig
|
30
|
-
- pre-distclean.rb
|
31
|
-
- ruby-oci8.gemspec
|
32
|
-
- setup.rb
|
33
31
|
- docs/bind-array-to-in_cond.md
|
34
32
|
- docs/conflicts-local-connections-and-processes.md
|
35
33
|
- docs/hanging-after-inactivity.md
|
@@ -44,8 +42,8 @@ files:
|
|
44
42
|
- docs/report-installation-issue.md
|
45
43
|
- docs/timeout-parameters.md
|
46
44
|
- lib/.document
|
47
|
-
- lib/oci8.rb
|
48
45
|
- lib/dbd/OCI8.rb
|
46
|
+
- lib/oci8.rb
|
49
47
|
- lib/oci8/.document
|
50
48
|
- lib/oci8/bindtype.rb
|
51
49
|
- lib/oci8/check_load_error.rb
|
@@ -62,8 +60,16 @@ files:
|
|
62
60
|
- lib/oci8/oracle_version.rb
|
63
61
|
- lib/oci8/properties.rb
|
64
62
|
- lib/oci8/version.rb
|
63
|
+
- lib/oci8lib_250.so
|
64
|
+
- lib/oci8lib_260.so
|
65
|
+
- lib/oci8lib_270.so
|
66
|
+
- lib/oci8lib_300.so
|
65
67
|
- lib/ruby-oci8.rb
|
66
|
-
-
|
68
|
+
- metaconfig
|
69
|
+
- pre-distclean.rb
|
70
|
+
- ruby-oci8.gemspec
|
71
|
+
- setup.rb
|
72
|
+
- test/README.md
|
67
73
|
- test/config.rb
|
68
74
|
- test/setup_test_object.sql
|
69
75
|
- test/setup_test_package.sql
|
@@ -72,18 +78,18 @@ files:
|
|
72
78
|
- test/test_array_dml.rb
|
73
79
|
- test/test_bind_array.rb
|
74
80
|
- test/test_bind_boolean.rb
|
81
|
+
- test/test_bind_integer.rb
|
75
82
|
- test/test_bind_raw.rb
|
76
83
|
- test/test_bind_string.rb
|
77
84
|
- test/test_bind_time.rb
|
78
|
-
- test/test_bind_integer.rb
|
79
85
|
- test/test_break.rb
|
80
86
|
- test/test_clob.rb
|
81
87
|
- test/test_connection_pool.rb
|
82
88
|
- test/test_connstr.rb
|
83
|
-
- test/test_encoding.rb
|
84
89
|
- test/test_datetime.rb
|
85
90
|
- test/test_dbi.rb
|
86
91
|
- test/test_dbi_clob.rb
|
92
|
+
- test/test_encoding.rb
|
87
93
|
- test/test_error.rb
|
88
94
|
- test/test_metadata.rb
|
89
95
|
- test/test_object.rb
|
@@ -92,13 +98,8 @@ files:
|
|
92
98
|
- test/test_oradate.rb
|
93
99
|
- test/test_oranumber.rb
|
94
100
|
- test/test_package_type.rb
|
101
|
+
- test/test_properties.rb
|
95
102
|
- test/test_rowid.rb
|
96
|
-
- lib/oci8lib_200.so
|
97
|
-
- lib/oci8lib_210.so
|
98
|
-
- lib/oci8lib_220.so
|
99
|
-
- lib/oci8lib_230.so
|
100
|
-
- lib/oci8lib_240.so
|
101
|
-
- lib/oci8lib_250.so
|
102
103
|
homepage: http://www.rubydoc.info/github/kubo/ruby-oci8
|
103
104
|
licenses:
|
104
105
|
- BSD-2-Clause
|
@@ -107,20 +108,19 @@ post_install_message:
|
|
107
108
|
rdoc_options: []
|
108
109
|
require_paths:
|
109
110
|
- lib
|
110
|
-
- ext/oci8
|
111
111
|
required_ruby_version: !ruby/object:Gem::Requirement
|
112
112
|
requirements:
|
113
|
-
- -
|
113
|
+
- - ">="
|
114
114
|
- !ruby/object:Gem::Version
|
115
|
-
version: 2.
|
115
|
+
version: 2.5.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
122
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.
|
123
|
+
rubygems_version: 2.7.3
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
126
|
summary: Ruby interface for Oracle using OCI8 API
|
data/lib/oci8lib_200.so
DELETED
Binary file
|
data/lib/oci8lib_210.so
DELETED
Binary file
|
data/lib/oci8lib_220.so
DELETED
Binary file
|
data/lib/oci8lib_230.so
DELETED
Binary file
|
data/lib/oci8lib_240.so
DELETED
Binary file
|
data/test/README
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
Before runing unit test:
|
2
|
-
|
3
|
-
1. connect to Oracle as system:
|
4
|
-
|
5
|
-
$ sqlplus system/<password_of_system>
|
6
|
-
|
7
|
-
2. create user ruby:
|
8
|
-
|
9
|
-
SQL> CREATE USER ruby IDENTIFIED BY oci8;
|
10
|
-
|
11
|
-
or
|
12
|
-
|
13
|
-
SQL> CREATE USER ruby IDENTIFIED BY oci8
|
14
|
-
2 DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp;
|
15
|
-
|
16
|
-
3. grant the privilege to connect and execute.
|
17
|
-
|
18
|
-
SQL> GRANT connect, resource, create view TO ruby;
|
19
|
-
|
20
|
-
4. connect to Oracle as sys
|
21
|
-
|
22
|
-
$ sqlplus 'sys/<password_of_sys> as sysdba'
|
23
|
-
|
24
|
-
5. grant privileges
|
25
|
-
|
26
|
-
SQL> GRANT EXECUTE ON dbms_lock TO ruby;
|
27
|
-
SQL> GRANT CREATE VIEW TO ruby;
|
28
|
-
|
29
|
-
6. connect as ruby user.
|
30
|
-
|
31
|
-
$ sqlplus ruby/oci8
|
32
|
-
|
33
|
-
7. Create object types
|
34
|
-
|
35
|
-
SQL> @test/setup_test_object.sql
|
36
|
-
|
37
|
-
8. change $dbname if the database
|
38
|
-
|
39
|
-
Then you can run:
|
40
|
-
$ make check
|
41
|
-
or
|
42
|
-
$ nmake check (If your compiler is MS Visual C++.)
|