factorylabs-adapter_extensions 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -47,7 +47,7 @@ module ActiveRecord #:nodoc:
|
|
47
47
|
@bulk_load_enabled = true
|
48
48
|
end
|
49
49
|
|
50
|
-
q = "LOAD DATA LOCAL INFILE '#{file}' INTO TABLE #{table_name}"
|
50
|
+
q = "LOAD DATA LOCAL INFILE '#{file}' #{options[:replace] ? 'REPLACE' : ''} INTO TABLE #{table_name}"
|
51
51
|
if options[:fields]
|
52
52
|
q << " FIELDS"
|
53
53
|
q << " TERMINATED BY '#{options[:fields][:delimited_by]}'" if options[:fields][:delimited_by]
|