myreplicator 1.1.32 → 1.1.33

Sign up to get free protection for your applications and to get access to all the features.
@@ -125,7 +125,6 @@ module Myreplicator
125
125
  :source_schema => options[:source_schema])
126
126
  Kernel.p "===== schema_check ====="
127
127
  Kernel.p schema_check
128
- Kernel.p schema_check[:mysql_schema]
129
128
  #create a temp table
130
129
  temp_table = "temp_" + options[:table_name] + DateTime.now.strftime('%Y%m%d_%H%M%S').to_s
131
130
  ops = {:mysql_schema => schema_check[:mysql_schema],
@@ -136,8 +135,6 @@ module Myreplicator
136
135
  :export_id => options[:export_id],
137
136
  :filepath => options[:filepath]
138
137
  }
139
- Kernel.p "===== schema_check[:mysql_schema] ====="
140
- Kernel.p ops
141
138
  if schema_check[:new]
142
139
  create_table(ops)
143
140
  #LOAD DATA IN
@@ -426,14 +423,15 @@ module Myreplicator
426
423
  options = args.extract_options!
427
424
  exp = Export.find(options[:export_id])
428
425
  begin
429
- if exp.analyze_constraints == 1
426
+ if exp.analyze_constraints == true
430
427
  sql = "SELECT analyze_constraints('#{options[:vertica_db]}.#{options[:vertica_schema]}.#{options[:table]}');"
431
428
  result = Myreplicator::DB.exec_sql("vertica",sql)
432
429
  return result.entries.size
433
430
  end
434
431
  rescue Exception => e
435
432
  puts e.message
436
- end
433
+ end
434
+ return 0
437
435
  end
438
436
  =begin
439
437
  def create_all_tables db
@@ -1,3 +1,3 @@
1
1
  module Myreplicator
2
- VERSION = "1.1.32"
2
+ VERSION = "1.1.33"
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.32
4
+ version: 1.1.33
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -359,7 +359,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
359
359
  version: '0'
360
360
  segments:
361
361
  - 0
362
- hash: -984056559556813446
362
+ hash: -4112001520012810330
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: -984056559556813446
371
+ hash: -4112001520012810330
372
372
  requirements: []
373
373
  rubyforge_project:
374
374
  rubygems_version: 1.8.24