app/models/myreplicator/export.rb in myreplicator-1.0.0 vs app/models/myreplicator/export.rb in myreplicator-1.0.1
- old
+ new
@@ -74,10 +74,10 @@
sql = SqlCommands.max_value_sql(:incremental_col => self.incremental_column,
:db => self.source_schema,
:table => self.table_name)
result = exec_on_source(sql)
- return result.first.first
+ return result.first.first.to_s(:db)
end
def update_max_val(max_val = nil)
if max_val.nil?
self.max_incremental_value = max_value