myreplicator 1.1.53 → 1.1.54

Sign up to get free protection for your applications and to get access to all the features.
@@ -102,7 +102,7 @@ module Myreplicator
102
102
  @export = Export.find(params[:id])
103
103
  flash[:notice] = "'#{@export.destination_schema}.#{@export.table_name}' is reloading"
104
104
  @export.reload
105
- redirect_to :action => 'show'
105
+ redirect_to :action => 'index'
106
106
  end
107
107
 
108
108
  private
@@ -132,8 +132,11 @@ module Myreplicator
132
132
  columns = Myreplicator::VerticaLoader.get_mysql_inserted_columns mysql_schema_simple_form
133
133
  #Kernel.p "===== table's columns====="
134
134
  #Kernel.p columns
135
-
136
- json = JSON.parse(exp.removing_special_chars)
135
+ if !exp.removing_special_chars.blank?
136
+ json = JSON.parse(exp.removing_special_chars)
137
+ else
138
+ json = {}
139
+ end
137
140
  #Kernel.p exp.removing_special_chars
138
141
  #Kernel.p json
139
142
  result = []
@@ -148,6 +151,7 @@ module Myreplicator
148
151
  else
149
152
  sql = "REPLACE(#{sql}, '#{k}', '#{v}')"
150
153
  end
154
+ sql.gsub!("back_slash","\\\\\\\\\\")
151
155
  #puts sql
152
156
  end
153
157
  result << sql
@@ -243,7 +247,7 @@ module Myreplicator
243
247
  end
244
248
 
245
249
  cmd += "--execute=\"#{get_outfile_sql(options)}\" "
246
-
250
+ Kernel.p cmd
247
251
  puts cmd
248
252
  return cmd
249
253
  end
@@ -1,3 +1,3 @@
1
1
  module Myreplicator
2
- VERSION = "1.1.53"
2
+ VERSION = "1.1.54"
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.53
4
+ version: 1.1.54
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-07-18 00:00:00.000000000 Z
12
+ date: 2013-07-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -354,7 +354,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
354
354
  version: '0'
355
355
  segments:
356
356
  - 0
357
- hash: 2486983726368324823
357
+ hash: 3415407350311219470
358
358
  required_rubygems_version: !ruby/object:Gem::Requirement
359
359
  none: false
360
360
  requirements:
@@ -363,7 +363,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
363
363
  version: '0'
364
364
  segments:
365
365
  - 0
366
- hash: 2486983726368324823
366
+ hash: 3415407350311219470
367
367
  requirements: []
368
368
  rubyforge_project:
369
369
  rubygems_version: 1.8.24