myreplicator 1.1.29 → 1.1.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -182,7 +182,10 @@ module Myreplicator
182
182
  def self.compare_datatypes index, vertica_schema, mysql_schema
183
183
  type = Myreplicator::VerticaTypes.convert mysql_schema[index]["data_type"], mysql_schema[index]["column_type"]
184
184
  if vertica_schema.rows[index][:data_type].downcase != type.downcase
185
- if vertica_schema.rows[index][:data_type] != "timestamp"
185
+ if !(vertica_schema.rows[index][:data_type].include?("timestamp")) &&
186
+ !(vertica_schema.rows[index][:data_type].include?("decimal")) &&
187
+ !(vertica_schema.rows[index][:data_type].include?("numeric")) &&
188
+ !(vertica_schema.rows[index][:data_type].include?("binary"))
186
189
  return true
187
190
  end
188
191
  return false
@@ -126,7 +126,7 @@ module Myreplicator
126
126
  if options[:enclosed_by].blank?
127
127
  sql += " FIELDS TERMINATED BY '\\0' ESCAPED BY '' LINES TERMINATED BY ';~~;\n'"
128
128
  else
129
- sql += " FIELDS TERMINATED BY '\\0' ESCAPED BY '' OPTIONALLY ENCLOSED BY '\\\"' LINES TERMINATED BY ';~~;\n'"
129
+ sql += " FIELDS TERMINATED BY '\\0' ESCAPED BY '' ENCLOSED BY '#{options[:enclosed_by]}' LINES TERMINATED BY ';~~;\n'"
130
130
  end
131
131
 
132
132
  sql += "FROM #{options[:db]}.#{options[:table]} "
@@ -1,3 +1,3 @@
1
1
  module Myreplicator
2
- VERSION = "1.1.29"
2
+ VERSION = "1.1.30"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myreplicator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.29
4
+ version: 1.1.30
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-10 00:00:00.000000000 Z
12
+ date: 2013-04-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -359,7 +359,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
359
359
  version: '0'
360
360
  segments:
361
361
  - 0
362
- hash: -530255392242392839
362
+ hash: 2380744452726569905
363
363
  required_rubygems_version: !ruby/object:Gem::Requirement
364
364
  none: false
365
365
  requirements:
@@ -368,7 +368,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
368
368
  version: '0'
369
369
  segments:
370
370
  - 0
371
- hash: -530255392242392839
371
+ hash: 2380744452726569905
372
372
  requirements: []
373
373
  rubyforge_project:
374
374
  rubygems_version: 1.8.24