ruby-oci8 2.2.10-x64-mingw-ucrt
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +14 -0
- data/COPYING +30 -0
- data/COPYING_old +64 -0
- data/ChangeLog +3826 -0
- data/Makefile +92 -0
- data/NEWS +1209 -0
- data/README.md +66 -0
- data/dist-files +112 -0
- data/docs/bind-array-to-in_cond.md +38 -0
- data/docs/conflicts-local-connections-and-processes.md +98 -0
- data/docs/hanging-after-inactivity.md +63 -0
- data/docs/install-binary-package.md +44 -0
- data/docs/install-full-client.md +111 -0
- data/docs/install-instant-client.md +194 -0
- data/docs/install-on-osx.md +46 -0
- data/docs/ldap-auth-and-function-interposition.md +123 -0
- data/docs/number-type-mapping.md +79 -0
- data/docs/platform-specific-issues.md +164 -0
- data/docs/report-installation-issue.md +50 -0
- data/docs/timeout-parameters.md +94 -0
- data/lib/.document +1 -0
- data/lib/dbd/OCI8.rb +591 -0
- data/lib/oci8/.document +8 -0
- data/lib/oci8/bindtype.rb +333 -0
- data/lib/oci8/check_load_error.rb +146 -0
- data/lib/oci8/compat.rb +117 -0
- data/lib/oci8/connection_pool.rb +179 -0
- data/lib/oci8/cursor.rb +605 -0
- data/lib/oci8/datetime.rb +605 -0
- data/lib/oci8/encoding-init.rb +45 -0
- data/lib/oci8/encoding.yml +537 -0
- data/lib/oci8/metadata.rb +2148 -0
- data/lib/oci8/object.rb +641 -0
- data/lib/oci8/oci8.rb +756 -0
- data/lib/oci8/ocihandle.rb +591 -0
- data/lib/oci8/oracle_version.rb +153 -0
- data/lib/oci8/properties.rb +196 -0
- data/lib/oci8/version.rb +3 -0
- data/lib/oci8.rb +190 -0
- data/lib/oci8lib_310.so +0 -0
- data/lib/ruby-oci8.rb +1 -0
- data/metaconfig +142 -0
- data/pre-distclean.rb +7 -0
- data/ruby-oci8.gemspec +85 -0
- data/setup.rb +1342 -0
- data/test/README.md +37 -0
- data/test/config.rb +201 -0
- data/test/setup_test_object.sql +199 -0
- data/test/setup_test_package.sql +59 -0
- data/test/test_all.rb +56 -0
- data/test/test_appinfo.rb +62 -0
- data/test/test_array_dml.rb +332 -0
- data/test/test_bind_array.rb +70 -0
- data/test/test_bind_boolean.rb +99 -0
- data/test/test_bind_integer.rb +47 -0
- data/test/test_bind_raw.rb +45 -0
- data/test/test_bind_string.rb +105 -0
- data/test/test_bind_time.rb +177 -0
- data/test/test_break.rb +125 -0
- data/test/test_clob.rb +85 -0
- data/test/test_connection_pool.rb +124 -0
- data/test/test_connstr.rb +220 -0
- data/test/test_datetime.rb +585 -0
- data/test/test_dbi.rb +365 -0
- data/test/test_dbi_clob.rb +53 -0
- data/test/test_encoding.rb +103 -0
- data/test/test_error.rb +87 -0
- data/test/test_metadata.rb +2674 -0
- data/test/test_object.rb +546 -0
- data/test/test_oci8.rb +624 -0
- data/test/test_oracle_version.rb +68 -0
- data/test/test_oradate.rb +255 -0
- data/test/test_oranumber.rb +792 -0
- data/test/test_package_type.rb +981 -0
- data/test/test_properties.rb +17 -0
- data/test/test_rowid.rb +32 -0
- metadata +123 -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
|
data/test/test_rowid.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'oci8'
|
2
|
+
require File.dirname(__FILE__) + '/config'
|
3
|
+
|
4
|
+
class TestRowid < Minitest::Test
|
5
|
+
|
6
|
+
def setup
|
7
|
+
@conn = get_oci8_connection
|
8
|
+
end
|
9
|
+
|
10
|
+
def test_rowid
|
11
|
+
drop_table('test_table')
|
12
|
+
sql = <<-EOS
|
13
|
+
CREATE TABLE test_table (N NUMBER(38))
|
14
|
+
EOS
|
15
|
+
@conn.exec(sql)
|
16
|
+
cursor = @conn.parse("INSERT INTO test_table values(1)");
|
17
|
+
cursor.exec
|
18
|
+
rid1 = cursor.rowid
|
19
|
+
assert_instance_of(String, rid1)
|
20
|
+
cursor.close
|
21
|
+
rid2 = nil
|
22
|
+
@conn.exec('select rowid from test_table where rowid = :1', rid1) do |row|
|
23
|
+
rid2 = row[0]
|
24
|
+
end
|
25
|
+
assert_equal(rid2, rid1)
|
26
|
+
drop_table('test_table')
|
27
|
+
end
|
28
|
+
|
29
|
+
def teardown
|
30
|
+
@conn.logoff
|
31
|
+
end
|
32
|
+
end
|
metadata
ADDED
@@ -0,0 +1,123 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ruby-oci8
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.2.10
|
5
|
+
platform: x64-mingw-ucrt
|
6
|
+
authors:
|
7
|
+
- Kubo Takehiro
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-01-12 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
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
|
+
'
|
17
|
+
email: kubo@jiubao.org
|
18
|
+
executables: []
|
19
|
+
extensions: []
|
20
|
+
extra_rdoc_files:
|
21
|
+
- README.md
|
22
|
+
files:
|
23
|
+
- ".yardopts"
|
24
|
+
- COPYING
|
25
|
+
- COPYING_old
|
26
|
+
- ChangeLog
|
27
|
+
- Makefile
|
28
|
+
- NEWS
|
29
|
+
- README.md
|
30
|
+
- dist-files
|
31
|
+
- docs/bind-array-to-in_cond.md
|
32
|
+
- docs/conflicts-local-connections-and-processes.md
|
33
|
+
- docs/hanging-after-inactivity.md
|
34
|
+
- docs/install-binary-package.md
|
35
|
+
- docs/install-full-client.md
|
36
|
+
- docs/install-instant-client.md
|
37
|
+
- docs/install-on-osx.md
|
38
|
+
- docs/ldap-auth-and-function-interposition.md
|
39
|
+
- docs/number-type-mapping.md
|
40
|
+
- docs/platform-specific-issues.md
|
41
|
+
- docs/report-installation-issue.md
|
42
|
+
- docs/timeout-parameters.md
|
43
|
+
- lib/.document
|
44
|
+
- lib/dbd/OCI8.rb
|
45
|
+
- lib/oci8.rb
|
46
|
+
- lib/oci8/.document
|
47
|
+
- lib/oci8/bindtype.rb
|
48
|
+
- lib/oci8/check_load_error.rb
|
49
|
+
- lib/oci8/compat.rb
|
50
|
+
- lib/oci8/connection_pool.rb
|
51
|
+
- lib/oci8/cursor.rb
|
52
|
+
- lib/oci8/datetime.rb
|
53
|
+
- lib/oci8/encoding-init.rb
|
54
|
+
- lib/oci8/encoding.yml
|
55
|
+
- lib/oci8/metadata.rb
|
56
|
+
- lib/oci8/object.rb
|
57
|
+
- lib/oci8/oci8.rb
|
58
|
+
- lib/oci8/ocihandle.rb
|
59
|
+
- lib/oci8/oracle_version.rb
|
60
|
+
- lib/oci8/properties.rb
|
61
|
+
- lib/oci8/version.rb
|
62
|
+
- lib/oci8lib_310.so
|
63
|
+
- lib/ruby-oci8.rb
|
64
|
+
- metaconfig
|
65
|
+
- pre-distclean.rb
|
66
|
+
- ruby-oci8.gemspec
|
67
|
+
- setup.rb
|
68
|
+
- test/README.md
|
69
|
+
- test/config.rb
|
70
|
+
- test/setup_test_object.sql
|
71
|
+
- test/setup_test_package.sql
|
72
|
+
- test/test_all.rb
|
73
|
+
- test/test_appinfo.rb
|
74
|
+
- test/test_array_dml.rb
|
75
|
+
- test/test_bind_array.rb
|
76
|
+
- test/test_bind_boolean.rb
|
77
|
+
- test/test_bind_integer.rb
|
78
|
+
- test/test_bind_raw.rb
|
79
|
+
- test/test_bind_string.rb
|
80
|
+
- test/test_bind_time.rb
|
81
|
+
- test/test_break.rb
|
82
|
+
- test/test_clob.rb
|
83
|
+
- test/test_connection_pool.rb
|
84
|
+
- test/test_connstr.rb
|
85
|
+
- test/test_datetime.rb
|
86
|
+
- test/test_dbi.rb
|
87
|
+
- test/test_dbi_clob.rb
|
88
|
+
- test/test_encoding.rb
|
89
|
+
- test/test_error.rb
|
90
|
+
- test/test_metadata.rb
|
91
|
+
- test/test_object.rb
|
92
|
+
- test/test_oci8.rb
|
93
|
+
- test/test_oracle_version.rb
|
94
|
+
- test/test_oradate.rb
|
95
|
+
- test/test_oranumber.rb
|
96
|
+
- test/test_package_type.rb
|
97
|
+
- test/test_properties.rb
|
98
|
+
- test/test_rowid.rb
|
99
|
+
homepage: http://www.rubydoc.info/github/kubo/ruby-oci8
|
100
|
+
licenses:
|
101
|
+
- BSD-2-Clause
|
102
|
+
metadata: {}
|
103
|
+
post_install_message:
|
104
|
+
rdoc_options: []
|
105
|
+
require_paths:
|
106
|
+
- lib
|
107
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - "~>"
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: 3.1.0
|
112
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
requirements: []
|
118
|
+
rubygems_version: 3.3.3
|
119
|
+
signing_key:
|
120
|
+
specification_version: 4
|
121
|
+
summary: Ruby interface for Oracle using OCI8 API
|
122
|
+
test_files:
|
123
|
+
- test/test_all.rb
|