jvertica 0.1.4 → 0.1.5

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: de9c6674f79eaed12e230662901b1c579f472253
4
- data.tar.gz: fcfe4c0b86cdab21e1373e89268543b61b4c1b0e
3
+ metadata.gz: 2cf28035cc4ef179c3fcfbf08224afa76a9d152f
4
+ data.tar.gz: 5a8df75c0a24beeb302614938f854e162155690c
5
5
  SHA512:
6
- metadata.gz: 6f4a55033585367e0958b96b427be21f572f8481dc7b383bf8385a5975cb7ac881866c004cd77492646055dc344f6436b97f2351fcb3608864af4f39f65b91b9
7
- data.tar.gz: 30c732927c8a6ce45c55059c93c2b6e5d16522ddd46f068f602d5a46c78ed288fefc1a5f1123a286d98253d1102038e6cd69bba5eb2f40437fd0daa292df1712
6
+ metadata.gz: a5574db7517ee2377838d306e8323a08a5d005d5437356d59fdd5b68b9c49ef80d6df25fe1207856178fbf5783d0996fcdc716174d1fc5885e8eafcb2eb12b8b
7
+ data.tar.gz: 3df9c03e2fa0ab74c53e82a19eb8bf9912a7ca07b1f03d32ca7fff4549b0816d0042fa846058616e09dfc9a780b2f5777cece16b1bf5106e014563773acfd59f
@@ -1,3 +1,3 @@
1
1
  class Jvertica
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
data/lib/jvertica.rb CHANGED
@@ -111,6 +111,7 @@ class Jvertica
111
111
  raise InvalidQuery.new('can use only "copy".') unless %r{\A\s*copy}miu === query
112
112
  stream = com.vertica.jdbc.VerticaCopyStream.new @connection, query
113
113
  stream.start
114
+ thread = nil
114
115
  begin
115
116
  if !source.nil?
116
117
 
@@ -131,7 +132,6 @@ class Jvertica
131
132
  rescue => e
132
133
  raise e
133
134
  ensure
134
- thread.join
135
135
  end
136
136
  end
137
137
 
@@ -146,6 +146,8 @@ class Jvertica
146
146
  results = stream.finish
147
147
  rescue => e
148
148
  raise e
149
+ ensure
150
+ thread.join
149
151
  end
150
152
 
151
153
  [results, rejects.to_ary]
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.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - takahiro.nakayama