oracle_raw 0.2.3 → 0.2.4
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.
- checksums.yaml +4 -4
- data/{LICENSE.txt → LICENSE} +1 -1
- data/VERSION +1 -1
- data/lib/oracle_raw.rb +9 -2
- data/test/helper.rb +0 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed8536987cb977226253b1e774cc24345c06ff2b
|
4
|
+
data.tar.gz: f5f18fba5e75e88db71fc669ecc6d68d172cb312
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4006e36f64f4425a77b9c2084ff3e66f23f88c9b7a4ed47307d4d52eca8e4096b5f88db6575856bc46fbc62bea53a825c675a4eeb3dd491f8946b02839286d58
|
7
|
+
data.tar.gz: 28955b99c794c54ebe621330bfcd9e6001b13c2e96bf32c72d7d5f2d030e25010f799c6c7af504e5c13418a1bba411fd739d4540a806c5453835d7dd17aefe02
|
data/{LICENSE.txt → LICENSE}
RENAMED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
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
|
-
|
16
|
-
params.each do |p|
|
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
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.
|
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
|
118
|
+
- LICENSE
|
119
119
|
- README.md
|
120
120
|
files:
|
121
121
|
- .document
|
122
122
|
- Gemfile
|
123
|
-
- LICENSE
|
123
|
+
- LICENSE
|
124
124
|
- README.md
|
125
125
|
- Rakefile
|
126
126
|
- VERSION
|