jvertica 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/jvertica.rb +4 -2
- data/lib/jvertica/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b03d55c413e588d0432a19989f119d568e44f76d
|
4
|
+
data.tar.gz: 09e223a1d6d381e4a50868be1f35917b27385f05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d55ad4da617ed7e30c2218583e4aa004d2afbbb526135c2b7f95cbd3df1482d48d47cccc008d5a6cbcc55b79f288149d9001a555c60ba21be55527b1c23a60e
|
7
|
+
data.tar.gz: b92a51fa4bb59ed95356f51b2a2d0b7e0cf200bec1964f712341d9e21ccc7208c68a07eb66542d8c4910436d1e5f8b1fb9a98000a1e955704a0cbd2e53262d77
|
data/CHANGELOG.md
ADDED
data/lib/jvertica.rb
CHANGED
@@ -176,7 +176,7 @@ class Jvertica
|
|
176
176
|
|
177
177
|
stream = com.vertica.jdbc.VerticaCopyStream.new(@connection, query)
|
178
178
|
stream.start
|
179
|
-
thread = nil
|
179
|
+
thread = i = nil
|
180
180
|
|
181
181
|
begin
|
182
182
|
|
@@ -188,8 +188,9 @@ class Jvertica
|
|
188
188
|
yield(o)
|
189
189
|
rescue => e
|
190
190
|
copy_stream_thread.raise e
|
191
|
+
ensure
|
192
|
+
o.close
|
191
193
|
end
|
192
|
-
o.close
|
193
194
|
end
|
194
195
|
stream.addStream(org.jruby.util.IOInputStream.new(i))
|
195
196
|
else
|
@@ -207,6 +208,7 @@ class Jvertica
|
|
207
208
|
results = stream.finish
|
208
209
|
ensure
|
209
210
|
thread.join unless thread.nil?
|
211
|
+
i.close rescue nil
|
210
212
|
end
|
211
213
|
|
212
214
|
[results, rejects.to_ary]
|
data/lib/jvertica/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jvertica
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- takahiro.nakayama
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-02-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -92,6 +92,7 @@ files:
|
|
92
92
|
- .gitignore
|
93
93
|
- .rspec
|
94
94
|
- .travis.yml
|
95
|
+
- CHANGELOG.md
|
95
96
|
- Gemfile
|
96
97
|
- LICENSE.txt
|
97
98
|
- README.md
|