myreplicator 1.1.29 → 1.1.30
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/exporter/mysql_exporter.rb +4 -1
- data/lib/exporter/sql_commands.rb +1 -1
- data/lib/myreplicator/version.rb +1 -1
- metadata +4 -4
@@ -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]
|
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 ''
|
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]} "
|
data/lib/myreplicator/version.rb
CHANGED
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.
|
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-
|
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:
|
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:
|
371
|
+
hash: 2380744452726569905
|
372
372
|
requirements: []
|
373
373
|
rubyforge_project:
|
374
374
|
rubygems_version: 1.8.24
|