ruby-oci8 2.0.4-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +1912 -0
- data/Makefile +96 -0
- data/NEWS +223 -0
- data/README +86 -0
- data/VERSION +1 -0
- data/dist-files +77 -0
- data/doc/api.en.html +527 -0
- data/doc/api.en.rd +554 -0
- data/doc/api.ja.html +525 -0
- data/doc/api.ja.rd +557 -0
- data/doc/manual.css +35 -0
- data/lib/.document +1 -0
- data/lib/dbd/OCI8.rb +591 -0
- data/lib/oci8.rb +82 -0
- data/lib/oci8.rb.in +82 -0
- data/lib/oci8/.document +5 -0
- data/lib/oci8/bindtype.rb +319 -0
- data/lib/oci8/compat.rb +113 -0
- data/lib/oci8/datetime.rb +619 -0
- data/lib/oci8/encoding-init.rb +40 -0
- data/lib/oci8/encoding.yml +537 -0
- data/lib/oci8/metadata.rb +2077 -0
- data/lib/oci8/object.rb +562 -0
- data/lib/oci8/oci8.rb +571 -0
- data/lib/oci8/oracle_version.rb +144 -0
- data/lib/oci8lib_18.so +0 -0
- data/lib/oci8lib_191.so +0 -0
- data/metaconfig +142 -0
- data/pre-distclean.rb +7 -0
- data/ruby-oci8.gemspec +63 -0
- data/setup.rb +1331 -0
- data/test/README +4 -0
- data/test/config.rb +109 -0
- data/test/test_all.rb +50 -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_time.rb +178 -0
- data/test/test_break.rb +83 -0
- data/test/test_clob.rb +79 -0
- data/test/test_connstr.rb +81 -0
- data/test/test_datetime.rb +622 -0
- data/test/test_dbi.rb +366 -0
- data/test/test_dbi_clob.rb +53 -0
- data/test/test_encoding.rb +100 -0
- data/test/test_metadata.rb +257 -0
- data/test/test_oci8.rb +434 -0
- data/test/test_oracle_version.rb +70 -0
- data/test/test_oradate.rb +256 -0
- data/test/test_oranumber.rb +655 -0
- data/test/test_rowid.rb +33 -0
- metadata +108 -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,108 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ruby-oci8
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.4
|
5
|
+
platform: x86-mingw32
|
6
|
+
authors:
|
7
|
+
- KUBO Takehiro
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2010-02-28 00:00:00 +09:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: |
|
17
|
+
ruby-oci8 is a ruby interface for Oracle using OCI8 API. It is available with Oracle8, Oracle8i, Oracle9i, Oracle10g and Oracle Instant Client.
|
18
|
+
|
19
|
+
email: kubo@jiubao.org
|
20
|
+
executables: []
|
21
|
+
|
22
|
+
extensions: []
|
23
|
+
|
24
|
+
extra_rdoc_files:
|
25
|
+
- README
|
26
|
+
files:
|
27
|
+
- ChangeLog
|
28
|
+
- Makefile
|
29
|
+
- NEWS
|
30
|
+
- README
|
31
|
+
- VERSION
|
32
|
+
- dist-files
|
33
|
+
- metaconfig
|
34
|
+
- pre-distclean.rb
|
35
|
+
- ruby-oci8.gemspec
|
36
|
+
- setup.rb
|
37
|
+
- doc/api.en.html
|
38
|
+
- doc/api.en.rd
|
39
|
+
- doc/api.ja.html
|
40
|
+
- doc/api.ja.rd
|
41
|
+
- doc/manual.css
|
42
|
+
- lib/.document
|
43
|
+
- lib/oci8.rb.in
|
44
|
+
- lib/dbd/OCI8.rb
|
45
|
+
- lib/oci8/.document
|
46
|
+
- lib/oci8/bindtype.rb
|
47
|
+
- lib/oci8/compat.rb
|
48
|
+
- lib/oci8/datetime.rb
|
49
|
+
- lib/oci8/encoding-init.rb
|
50
|
+
- lib/oci8/encoding.yml
|
51
|
+
- lib/oci8/metadata.rb
|
52
|
+
- lib/oci8/object.rb
|
53
|
+
- lib/oci8/oci8.rb
|
54
|
+
- lib/oci8/oracle_version.rb
|
55
|
+
- test/README
|
56
|
+
- test/config.rb
|
57
|
+
- test/test_all.rb
|
58
|
+
- test/test_appinfo.rb
|
59
|
+
- test/test_array_dml.rb
|
60
|
+
- test/test_bind_raw.rb
|
61
|
+
- test/test_bind_time.rb
|
62
|
+
- test/test_break.rb
|
63
|
+
- test/test_clob.rb
|
64
|
+
- test/test_connstr.rb
|
65
|
+
- test/test_encoding.rb
|
66
|
+
- test/test_datetime.rb
|
67
|
+
- test/test_dbi.rb
|
68
|
+
- test/test_dbi_clob.rb
|
69
|
+
- test/test_metadata.rb
|
70
|
+
- test/test_oci8.rb
|
71
|
+
- test/test_oracle_version.rb
|
72
|
+
- test/test_oradate.rb
|
73
|
+
- test/test_oranumber.rb
|
74
|
+
- test/test_rowid.rb
|
75
|
+
- lib/oci8lib_18.so
|
76
|
+
- lib/oci8lib_191.so
|
77
|
+
- lib/oci8.rb
|
78
|
+
has_rdoc: true
|
79
|
+
homepage: http://ruby-oci8.rubyforge.org
|
80
|
+
licenses: []
|
81
|
+
|
82
|
+
post_install_message:
|
83
|
+
rdoc_options:
|
84
|
+
- --main
|
85
|
+
- README
|
86
|
+
require_paths:
|
87
|
+
- lib
|
88
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 1.8.0
|
93
|
+
version:
|
94
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: "0"
|
99
|
+
version:
|
100
|
+
requirements: []
|
101
|
+
|
102
|
+
rubyforge_project: ruby-oci8
|
103
|
+
rubygems_version: 1.3.5
|
104
|
+
signing_key:
|
105
|
+
specification_version: 3
|
106
|
+
summary: Ruby interface for Oracle using OCI8 API
|
107
|
+
test_files:
|
108
|
+
- test/test_all.rb
|