ruby-oci8 2.1.5.1-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +17 -0
- data/COPYING +30 -0
- data/COPYING_old +64 -0
- data/ChangeLog +2779 -0
- data/Makefile +92 -0
- data/NEWS +660 -0
- data/README.md +43 -0
- data/VERSION +1 -0
- data/dist-files +91 -0
- data/docs/install-binary-package.md +40 -0
- data/docs/install-full-client.md +116 -0
- data/docs/install-instant-client.md +167 -0
- data/docs/platform-specific-issues.md +197 -0
- data/docs/report-installation-issue.md +50 -0
- data/lib/.document +1 -0
- data/lib/dbd/OCI8.rb +591 -0
- data/lib/oci8.rb +147 -0
- data/lib/oci8.rb.in +147 -0
- data/lib/oci8/.document +8 -0
- data/lib/oci8/bindtype.rb +350 -0
- data/lib/oci8/compat.rb +113 -0
- data/lib/oci8/connection_pool.rb +108 -0
- data/lib/oci8/cursor.rb +564 -0
- data/lib/oci8/datetime.rb +605 -0
- data/lib/oci8/encoding-init.rb +79 -0
- data/lib/oci8/encoding.yml +537 -0
- data/lib/oci8/metadata.rb +2092 -0
- data/lib/oci8/object.rb +605 -0
- data/lib/oci8/oci8.rb +560 -0
- data/lib/oci8/ocihandle.rb +607 -0
- data/lib/oci8/oracle_version.rb +143 -0
- data/lib/oci8/properties.rb +134 -0
- data/lib/oci8lib_200.so +0 -0
- data/metaconfig +142 -0
- data/pre-distclean.rb +7 -0
- data/ruby-oci8.gemspec +80 -0
- data/setup.rb +1333 -0
- data/test/README +42 -0
- data/test/config.rb +184 -0
- data/test/setup_test_object.sql +171 -0
- data/test/test_all.rb +54 -0
- data/test/test_appinfo.rb +63 -0
- data/test/test_array_dml.rb +333 -0
- data/test/test_bind_raw.rb +46 -0
- data/test/test_bind_string.rb +106 -0
- data/test/test_bind_time.rb +178 -0
- data/test/test_break.rb +124 -0
- data/test/test_clob.rb +98 -0
- data/test/test_connection_pool.rb +125 -0
- data/test/test_connstr.rb +81 -0
- data/test/test_datetime.rb +581 -0
- data/test/test_dbi.rb +366 -0
- data/test/test_dbi_clob.rb +53 -0
- data/test/test_encoding.rb +104 -0
- data/test/test_error.rb +88 -0
- data/test/test_metadata.rb +1485 -0
- data/test/test_object.rb +462 -0
- data/test/test_oci8.rb +489 -0
- data/test/test_oracle_version.rb +70 -0
- data/test/test_oradate.rb +256 -0
- data/test/test_oranumber.rb +787 -0
- data/test/test_rowid.rb +33 -0
- metadata +109 -0
data/test/test_rowid.rb
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'oci8'
|
2
|
+
require 'test/unit'
|
3
|
+
require File.dirname(__FILE__) + '/config'
|
4
|
+
|
5
|
+
class TestRowid < Test::Unit::TestCase
|
6
|
+
|
7
|
+
def setup
|
8
|
+
@conn = get_oci8_connection
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_rowid
|
12
|
+
drop_table('test_table')
|
13
|
+
sql = <<-EOS
|
14
|
+
CREATE TABLE test_table (N NUMBER(38))
|
15
|
+
EOS
|
16
|
+
@conn.exec(sql)
|
17
|
+
cursor = @conn.parse("INSERT INTO test_table values(1)");
|
18
|
+
cursor.exec
|
19
|
+
rid1 = cursor.rowid
|
20
|
+
assert_instance_of(String, rid1)
|
21
|
+
cursor.close
|
22
|
+
rid2 = nil
|
23
|
+
@conn.exec('select rowid from test_table where rowid = :1', rid1) do |row|
|
24
|
+
rid2 = row[0]
|
25
|
+
end
|
26
|
+
assert_equal(rid2, rid1)
|
27
|
+
drop_table('test_table')
|
28
|
+
end
|
29
|
+
|
30
|
+
def teardown
|
31
|
+
@conn.logoff
|
32
|
+
end
|
33
|
+
end
|
metadata
ADDED
@@ -0,0 +1,109 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ruby-oci8
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.1.5.1
|
5
|
+
platform: x64-mingw32
|
6
|
+
authors:
|
7
|
+
- Kubo Takehiro
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-06-11 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: |
|
14
|
+
ruby-oci8 is a ruby interface for Oracle using OCI8 API. It is available with Oracle8i, Oracle9i, Oracle10g, Oracle11g and Oracle Instant Client.
|
15
|
+
email: kubo@jiubao.org
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files:
|
19
|
+
- README.md
|
20
|
+
files:
|
21
|
+
- .yardopts
|
22
|
+
- COPYING
|
23
|
+
- COPYING_old
|
24
|
+
- ChangeLog
|
25
|
+
- Makefile
|
26
|
+
- NEWS
|
27
|
+
- README.md
|
28
|
+
- VERSION
|
29
|
+
- dist-files
|
30
|
+
- metaconfig
|
31
|
+
- pre-distclean.rb
|
32
|
+
- ruby-oci8.gemspec
|
33
|
+
- setup.rb
|
34
|
+
- docs/install-binary-package.md
|
35
|
+
- docs/install-full-client.md
|
36
|
+
- docs/install-instant-client.md
|
37
|
+
- docs/platform-specific-issues.md
|
38
|
+
- docs/report-installation-issue.md
|
39
|
+
- lib/.document
|
40
|
+
- lib/oci8.rb.in
|
41
|
+
- lib/dbd/OCI8.rb
|
42
|
+
- lib/oci8/.document
|
43
|
+
- lib/oci8/bindtype.rb
|
44
|
+
- lib/oci8/compat.rb
|
45
|
+
- lib/oci8/connection_pool.rb
|
46
|
+
- lib/oci8/cursor.rb
|
47
|
+
- lib/oci8/datetime.rb
|
48
|
+
- lib/oci8/encoding-init.rb
|
49
|
+
- lib/oci8/encoding.yml
|
50
|
+
- lib/oci8/metadata.rb
|
51
|
+
- lib/oci8/object.rb
|
52
|
+
- lib/oci8/oci8.rb
|
53
|
+
- lib/oci8/ocihandle.rb
|
54
|
+
- lib/oci8/oracle_version.rb
|
55
|
+
- lib/oci8/properties.rb
|
56
|
+
- test/README
|
57
|
+
- test/config.rb
|
58
|
+
- test/setup_test_object.sql
|
59
|
+
- test/test_all.rb
|
60
|
+
- test/test_appinfo.rb
|
61
|
+
- test/test_array_dml.rb
|
62
|
+
- test/test_bind_raw.rb
|
63
|
+
- test/test_bind_string.rb
|
64
|
+
- test/test_bind_time.rb
|
65
|
+
- test/test_break.rb
|
66
|
+
- test/test_clob.rb
|
67
|
+
- test/test_connection_pool.rb
|
68
|
+
- test/test_connstr.rb
|
69
|
+
- test/test_encoding.rb
|
70
|
+
- test/test_datetime.rb
|
71
|
+
- test/test_dbi.rb
|
72
|
+
- test/test_dbi_clob.rb
|
73
|
+
- test/test_error.rb
|
74
|
+
- test/test_metadata.rb
|
75
|
+
- test/test_object.rb
|
76
|
+
- test/test_oci8.rb
|
77
|
+
- test/test_oracle_version.rb
|
78
|
+
- test/test_oradate.rb
|
79
|
+
- test/test_oranumber.rb
|
80
|
+
- test/test_rowid.rb
|
81
|
+
- lib/oci8lib_200.so
|
82
|
+
- lib/oci8.rb
|
83
|
+
homepage: http://ruby-oci8.rubyforge.org
|
84
|
+
licenses:
|
85
|
+
- 2-clause BSD-style license
|
86
|
+
metadata: {}
|
87
|
+
post_install_message:
|
88
|
+
rdoc_options: []
|
89
|
+
require_paths:
|
90
|
+
- lib
|
91
|
+
- ext/oci8
|
92
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ~>
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 2.0.0.0
|
97
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
requirements: []
|
103
|
+
rubyforge_project: ruby-oci8
|
104
|
+
rubygems_version: 2.0.0
|
105
|
+
signing_key:
|
106
|
+
specification_version: 4
|
107
|
+
summary: Ruby interface for Oracle using OCI8 API
|
108
|
+
test_files:
|
109
|
+
- test/test_all.rb
|