sdbcli 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/sdbcli +3 -3
- metadata +1 -1
data/bin/sdbcli
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
|
3
3
|
|
4
|
-
Version = '1.2.
|
4
|
+
Version = '1.2.5'
|
5
5
|
HISTORY_FILE = File.join((ENV['HOME'] || ENV['USERPROFILE'] || '.'), '.sdbcli_history')
|
6
6
|
HISTSIZE = 500
|
7
7
|
SELECT_LIMIT = 2500
|
@@ -312,9 +312,9 @@ if import
|
|
312
312
|
until (batch_chunk = chunk.slice!(0, BATCH_ATTRS_LIMIT)).empty?
|
313
313
|
retry_api_call do
|
314
314
|
if import_as_replace
|
315
|
-
$runner.driver.update(import_domain, batch_chunk)
|
315
|
+
$runner.driver.update(import_domain, batch_chunk.dup)
|
316
316
|
else
|
317
|
-
$runner.driver.insert(import_domain, batch_chunk)
|
317
|
+
$runner.driver.insert(import_domain, batch_chunk.dup)
|
318
318
|
end
|
319
319
|
end
|
320
320
|
end
|