mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 07:15:47 +08:00
DEV: ensure values are converted to integers in bulk importer
This commit is contained in:
parent
2d63d7d05e
commit
5143309014
|
@ -137,7 +137,7 @@ class BulkImport::Base
|
||||||
@raw_connection.get_result.stream_each do |row|
|
@raw_connection.get_result.stream_each do |row|
|
||||||
id = row["value"].to_i
|
id = row["value"].to_i
|
||||||
ids << id
|
ids << id
|
||||||
map[id] = row["#{name}_id"]
|
map[id] = row["#{name}_id"].to_i
|
||||||
end
|
end
|
||||||
|
|
||||||
@raw_connection.get_result
|
@raw_connection.get_result
|
||||||
|
@ -181,7 +181,7 @@ class BulkImport::Base
|
||||||
@raw_connection.set_single_row_mode
|
@raw_connection.set_single_row_mode
|
||||||
|
|
||||||
@raw_connection.get_result.stream_each do |row|
|
@raw_connection.get_result.stream_each do |row|
|
||||||
map[row["id"]] = row[column]
|
map[row["id"].to_i] = row[column].to_i
|
||||||
end
|
end
|
||||||
|
|
||||||
@raw_connection.get_result
|
@raw_connection.get_result
|
||||||
|
|
Loading…
Reference in New Issue
Block a user