oracle_raw 0.2.3 → 0.2.4

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: 67a58be8be7895f344ab219c1cdca795df309749
4
- data.tar.gz: 28a9dcafd76d19d36d86a290a472be9f9d2c1469
3
+ metadata.gz: ed8536987cb977226253b1e774cc24345c06ff2b
4
+ data.tar.gz: f5f18fba5e75e88db71fc669ecc6d68d172cb312
5
5
  SHA512:
6
- metadata.gz: 596a3ff21ec4dcc05f5f1deaa85da3abc82c693698b7f6285e789b6e4b081294b1917370f52f028d96353262f83e3ff0a6be9f9f31b63ae060029bac329866ac
7
- data.tar.gz: 4de1dfdda4aa651b8514721890e91a0c210607f9f6f75fd25f5879b33a62a815f1061db6724028cb4af975fc5aa6b990ed7df642a998f0d725c95d41baddbcbc
6
+ metadata.gz: 4006e36f64f4425a77b9c2084ff3e66f23f88c9b7a4ed47307d4d52eca8e4096b5f88db6575856bc46fbc62bea53a825c675a4eeb3dd491f8946b02839286d58
7
+ data.tar.gz: 28955b99c794c54ebe621330bfcd9e6001b13c2e96bf32c72d7d5f2d030e25010f799c6c7af504e5c13418a1bba411fd739d4540a806c5453835d7dd17aefe02
@@ -1,4 +1,4 @@
1
- GNU LESSER GENERAL PUBLIC LICENSE
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
2
  Version 3, 29 June 2007
3
3
 
4
4
  Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.4
data/lib/oracle_raw.rb CHANGED
@@ -12,8 +12,14 @@ class OCI8::Cursor
12
12
  # The first value is the name given in the sql string, the second is the value to be bound,
13
13
  # the third is the type of the value, and the fourth is the maximum length of the value.
14
14
 
15
- def bind_parameters(params)
16
- params.each do |p| self.bind_param(p[0], p[1], p[2], p[3]) end if params
15
+ def bind_parameters(params)
16
+ params.each do |p|
17
+ if p[1].is_a?(Array)
18
+ self.bind_param_array(p[0], p[1], p[2], p[3])
19
+ else
20
+ self.bind_param(p[0], p[1], p[2], p[3])
21
+ end
22
+ end if params
17
23
  end
18
24
 
19
25
  # This method performs exec and prefetch.
@@ -90,6 +96,7 @@ class OracleRaw
90
96
  starttime = Time.new; data = []
91
97
 
92
98
  cursor = conn.parse(sqlquery)
99
+ cursor.max_array_size = 100
93
100
  cursor.bind_parameters(parameters) if parameters
94
101
  cursor.exec_with_prefetch(5000)
95
102
 
data/test/helper.rb CHANGED
@@ -12,6 +12,3 @@ require 'minitest/autorun'
12
12
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
13
13
  $LOAD_PATH.unshift(File.dirname(__FILE__))
14
14
  require 'oracle_raw'
15
-
16
- class MiniTest::Unit::TestCase
17
- end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oracle_raw
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - turkia
@@ -115,12 +115,12 @@ email: opiskelijarekisteri-devel@helsinki.fi
115
115
  executables: []
116
116
  extensions: []
117
117
  extra_rdoc_files:
118
- - LICENSE.txt
118
+ - LICENSE
119
119
  - README.md
120
120
  files:
121
121
  - .document
122
122
  - Gemfile
123
- - LICENSE.txt
123
+ - LICENSE
124
124
  - README.md
125
125
  - Rakefile
126
126
  - VERSION