ruby-oci8 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.yardopts +3 -0
- data/COPYING +30 -0
- data/COPYING_old +64 -0
- data/ChangeLog +115 -0
- data/Makefile +8 -4
- data/NEWS +60 -1
- data/README.md +9 -4
- data/VERSION +1 -1
- data/dist-files +5 -0
- data/ext/oci8/apiwrap.c.tmpl +5 -5
- data/ext/oci8/attr.c +1 -42
- data/ext/oci8/bind.c +5 -2
- data/ext/oci8/connection_pool.c +2 -2
- data/ext/oci8/encoding.c +18 -12
- data/ext/oci8/env.c +1 -1
- data/ext/oci8/extconf.rb +15 -12
- data/ext/oci8/lob.c +19 -2
- data/ext/oci8/oci8.c +69 -52
- data/ext/oci8/oci8.h +31 -18
- data/ext/oci8/oci8lib.c +73 -40
- data/ext/oci8/ocihandle.c +7 -2
- data/ext/oci8/ocinumber.c +5 -5
- data/ext/oci8/stmt.c +66 -368
- data/ext/oci8/thread_util.c +3 -3
- data/ext/oci8/thread_util.h +1 -1
- data/lib/oci8.rb.in +30 -17
- data/lib/oci8/connection_pool.rb +16 -27
- data/lib/oci8/cursor.rb +564 -0
- data/lib/oci8/datetime.rb +11 -17
- data/lib/oci8/encoding-init.rb +1 -0
- data/lib/oci8/metadata.rb +76 -151
- data/lib/oci8/object.rb +3 -3
- data/lib/oci8/oci8.rb +29 -335
- data/ruby-oci8.gemspec +1 -0
- data/setup.rb +4 -2
- data/test/config.rb +64 -0
- data/test/setup_test_object.sql +171 -0
- data/test/test_all.rb +1 -0
- data/test/test_break.rb +18 -2
- data/test/test_clob.rb +4 -4
- data/test/test_datetime.rb +8 -47
- data/test/test_metadata.rb +78 -0
- data/test/test_object.rb +463 -0
- data/test/test_oci8.rb +22 -0
- metadata +10 -3
data/test/test_oci8.rb
CHANGED
@@ -439,6 +439,12 @@ EOS
|
|
439
439
|
end
|
440
440
|
end
|
441
441
|
|
442
|
+
def test_parse_sets_query_on_cursor
|
443
|
+
statement = "select * from country where country_code = 'ja'"
|
444
|
+
cursor = @conn.parse(statement)
|
445
|
+
assert_equal(statement, cursor.statement)
|
446
|
+
end
|
447
|
+
|
442
448
|
def test_last_error
|
443
449
|
# OCI8#parse and OCI8#exec reset OCI8#last_error
|
444
450
|
@conn.last_error = 'dummy'
|
@@ -456,4 +462,20 @@ EOS
|
|
456
462
|
assert_kind_of(OCISuccessWithInfo, @conn.last_error)
|
457
463
|
assert_equal(24347, @conn.last_error.code)
|
458
464
|
end
|
465
|
+
|
466
|
+
def test_environment_handle
|
467
|
+
# OCI_ATTR_HEAPALLOC
|
468
|
+
assert_operator(OCI8.send(:class_variable_get, :@@environment_handle).send(:attr_get_ub4, 30), :>, 0)
|
469
|
+
# OCI_ATTR_OBJECT
|
470
|
+
assert(OCI8.send(:class_variable_get, :@@environment_handle).send(:attr_get_boolean, 2))
|
471
|
+
# OCI_ATTR_SHARED_HEAPALLOC
|
472
|
+
assert_equal(0, OCI8.send(:class_variable_get, :@@environment_handle).send(:attr_get_ub4, 84))
|
473
|
+
end
|
474
|
+
|
475
|
+
def test_process_handle
|
476
|
+
# OCI_ATTR_MEMPOOL_APPNAME
|
477
|
+
assert_equal('', OCI8.send(:class_variable_get, :@@process_handle).send(:attr_get_string, 90))
|
478
|
+
# OCI_ATTR_MEMPOOL_SIZE
|
479
|
+
assert_equal(0, OCI8.send(:class_variable_get, :@@process_handle).send(:attr_get_ub4, 88))
|
480
|
+
end
|
459
481
|
end # TestOCI8
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-oci8
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-11-11 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: ! 'ruby-oci8 is a ruby interface for Oracle using OCI8 API. It is available
|
15
15
|
with Oracle8, Oracle8i, Oracle9i, Oracle10g and Oracle Instant Client.
|
@@ -23,6 +23,8 @@ extra_rdoc_files:
|
|
23
23
|
- README.md
|
24
24
|
files:
|
25
25
|
- .yardopts
|
26
|
+
- COPYING
|
27
|
+
- COPYING_old
|
26
28
|
- ChangeLog
|
27
29
|
- Makefile
|
28
30
|
- NEWS
|
@@ -76,6 +78,7 @@ files:
|
|
76
78
|
- lib/oci8/bindtype.rb
|
77
79
|
- lib/oci8/compat.rb
|
78
80
|
- lib/oci8/connection_pool.rb
|
81
|
+
- lib/oci8/cursor.rb
|
79
82
|
- lib/oci8/datetime.rb
|
80
83
|
- lib/oci8/encoding-init.rb
|
81
84
|
- lib/oci8/encoding.yml
|
@@ -87,6 +90,7 @@ files:
|
|
87
90
|
- lib/oci8/properties.rb
|
88
91
|
- test/README
|
89
92
|
- test/config.rb
|
93
|
+
- test/setup_test_object.sql
|
90
94
|
- test/test_all.rb
|
91
95
|
- test/test_appinfo.rb
|
92
96
|
- test/test_array_dml.rb
|
@@ -103,13 +107,15 @@ files:
|
|
103
107
|
- test/test_dbi_clob.rb
|
104
108
|
- test/test_error.rb
|
105
109
|
- test/test_metadata.rb
|
110
|
+
- test/test_object.rb
|
106
111
|
- test/test_oci8.rb
|
107
112
|
- test/test_oracle_version.rb
|
108
113
|
- test/test_oradate.rb
|
109
114
|
- test/test_oranumber.rb
|
110
115
|
- test/test_rowid.rb
|
111
116
|
homepage: http://ruby-oci8.rubyforge.org
|
112
|
-
licenses:
|
117
|
+
licenses:
|
118
|
+
- 2-clause BSD-style license
|
113
119
|
post_install_message:
|
114
120
|
rdoc_options: []
|
115
121
|
require_paths:
|
@@ -135,3 +141,4 @@ specification_version: 3
|
|
135
141
|
summary: Ruby interface for Oracle using OCI8 API
|
136
142
|
test_files:
|
137
143
|
- test/test_all.rb
|
144
|
+
has_rdoc: yard
|