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 +4 -4
- data/lib/jvertica/version.rb +1 -1
- data/lib/jvertica.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2cf28035cc4ef179c3fcfbf08224afa76a9d152f
|
4
|
+
data.tar.gz: 5a8df75c0a24beeb302614938f854e162155690c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5574db7517ee2377838d306e8323a08a5d005d5437356d59fdd5b68b9c49ef80d6df25fe1207856178fbf5783d0996fcdc716174d1fc5885e8eafcb2eb12b8b
|
7
|
+
data.tar.gz: 3df9c03e2fa0ab74c53e82a19eb8bf9912a7ca07b1f03d32ca7fff4549b0816d0042fa846058616e09dfc9a780b2f5777cece16b1bf5106e014563773acfd59f
|
data/lib/jvertica/version.rb
CHANGED
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]
|