ruby-oci8 2.1.2-x86-mingw32 → 2.1.3-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
@@ -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: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
- - 2
10
- version: 2.1.2
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-04-28 00:00:00 +09:00
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