DEV: ensure values are converted to integers in bulk importer

This commit is contained in:
Régis Hanol 2020-06-18 17:42:14 +02:00
parent 2d63d7d05e
commit 5143309014
1 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ class BulkImport::Base
@raw_connection.get_result.stream_each do |row|
id = row["value"].to_i
ids << id
map[id] = row["#{name}_id"]
map[id] = row["#{name}_id"].to_i
end
@raw_connection.get_result
@ -181,7 +181,7 @@ class BulkImport::Base
@raw_connection.set_single_row_mode
@raw_connection.get_result.stream_each do |row|
map[row["id"]] = row[column]
map[row["id"].to_i] = row[column].to_i
end
@raw_connection.get_result