simpleOracleJDBC 0.3.1 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8084d705b1dc701ab3b760d885990891a57f310a
4
- data.tar.gz: 0e6307d167089c860aa493d528cfcbecede7a584
3
+ metadata.gz: d458e31088171d97acb23eec224e1c3aac545688
4
+ data.tar.gz: 1db1556d08351a91af1c0f054f37b70a9cedd20d
5
5
  SHA512:
6
- metadata.gz: c35254c4993138b2b0b011c3be67418581deef20661893fe34f906253cd03d3179f8823bf50bfb3af6f55b9ad5e29ab934f83ab5acd5f4f04f1730d8efa60bcb
7
- data.tar.gz: b62a180376d5429886d86b085a5b3946b5fff745c77a13ec24be7cb1ef5218eec3409264bdd43b50afd3c00b7ea368c0e2506c07aaa7ae9fbf9f4dbea741e189
6
+ metadata.gz: 955453a4c7ec2706501e935588587b77dcfd9e89651fcb7558f5574a0585b29bb758cbbfa7621636ae70e13e2663c838b34d404c1031fd20565e9f7f120cff46
7
+ data.tar.gz: 96aacfba42bb2b7f6208eabdb23bd563e882a1c1720ae3f7bffd6b9213af8537798de6353951264f8fa54ee98c83434d6e75d3101fec1ea8b4d667791a92dd7e
@@ -227,8 +227,7 @@ module SimpleOracleJDBC
227
227
 
228
228
  def retrieve_refcursor(obj, i)
229
229
  rset = obj.get_object(i)
230
- # Dummy connection passed as it is never needed?
231
- results = Sql.new(nil)
230
+ results = Sql.new(@connection)
232
231
  results.result_set = rset
233
232
  results
234
233
  end
@@ -73,6 +73,9 @@ module SimpleOracleJDBC
73
73
  def retrieve_out_value(conn, stmt, index)
74
74
  set_descriptor(conn)
75
75
  ora_array = stmt.get_array(index)
76
+ if ora_array.nil?
77
+ return nil
78
+ end
76
79
  base_type = ora_array.get_base_type_name
77
80
  if base_type == 'VARCHAR' or base_type == 'CHAR'
78
81
  retrieve_as_string(ora_array)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simpleOracleJDBC
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen O'Donnell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-03 00:00:00.000000000 Z
11
+ date: 2015-08-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A lightweight wrapper around the JDBC interface to make it easier to
14
14
  make SQL and stored procedure calls.
@@ -58,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
58
  version: '0'
59
59
  requirements: []
60
60
  rubyforge_project:
61
- rubygems_version: 2.2.0
61
+ rubygems_version: 2.4.3
62
62
  signing_key:
63
63
  specification_version: 4
64
64
  summary: A gem to simplify JDBC database access to Oracle when using JRuby