ruby-oci8 2.1.2 → 2.1.3

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.
@@ -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.2
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-04-28 00:00:00.000000000 Z
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