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]
@@ -3,7 +3,7 @@ module AdapterExtensions#:nodoc:
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 0
5
5
  MINOR = 5
6
- TINY = 3
6
+ TINY = 4
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].join('.')
9
9
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 3
9
- version: 0.5.3
8
+ - 4
9
+ version: 0.5.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Anthony Eden