ruby-oci8 2.1.2-x86-mingw32 → 2.1.3-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/lib/oci8.rb +32 -19
- 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/lib/oci8lib_18.map +1091 -1126
- data/lib/oci8lib_18.so +0 -0
- data/lib/oci8lib_191.map +1145 -1197
- data/lib/oci8lib_191.so +0 -0
- 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 +11 -6
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,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-oci8
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 2.1.
|
9
|
+
- 3
|
10
|
+
version: 2.1.3
|
11
11
|
platform: x86-mingw32
|
12
12
|
authors:
|
13
13
|
- KUBO Takehiro
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-11-11 00:00:00 +09:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -31,6 +31,8 @@ extra_rdoc_files:
|
|
31
31
|
- README.md
|
32
32
|
files:
|
33
33
|
- .yardopts
|
34
|
+
- COPYING
|
35
|
+
- COPYING_old
|
34
36
|
- ChangeLog
|
35
37
|
- Makefile
|
36
38
|
- NEWS
|
@@ -53,6 +55,7 @@ files:
|
|
53
55
|
- lib/oci8/bindtype.rb
|
54
56
|
- lib/oci8/compat.rb
|
55
57
|
- lib/oci8/connection_pool.rb
|
58
|
+
- lib/oci8/cursor.rb
|
56
59
|
- lib/oci8/datetime.rb
|
57
60
|
- lib/oci8/encoding-init.rb
|
58
61
|
- lib/oci8/encoding.yml
|
@@ -64,6 +67,7 @@ files:
|
|
64
67
|
- lib/oci8/properties.rb
|
65
68
|
- test/README
|
66
69
|
- test/config.rb
|
70
|
+
- test/setup_test_object.sql
|
67
71
|
- test/test_all.rb
|
68
72
|
- test/test_appinfo.rb
|
69
73
|
- test/test_array_dml.rb
|
@@ -80,6 +84,7 @@ files:
|
|
80
84
|
- test/test_dbi_clob.rb
|
81
85
|
- test/test_error.rb
|
82
86
|
- test/test_metadata.rb
|
87
|
+
- test/test_object.rb
|
83
88
|
- test/test_oci8.rb
|
84
89
|
- test/test_oracle_version.rb
|
85
90
|
- test/test_oradate.rb
|
@@ -92,8 +97,8 @@ files:
|
|
92
97
|
- lib/oci8.rb
|
93
98
|
has_rdoc: true
|
94
99
|
homepage: http://ruby-oci8.rubyforge.org
|
95
|
-
licenses:
|
96
|
-
|
100
|
+
licenses:
|
101
|
+
- 2-clause BSD-style license
|
97
102
|
post_install_message:
|
98
103
|
rdoc_options: []
|
99
104
|
|