# File lib/rubyrep/replication_helper.rb, line 84 def type_cast(table, row) @table_columns ||= {} unless @table_columns.include?(table) column_array = session.left.columns(table) column_hash = {} column_array.each {|column| column_hash[column.name] = column} @table_columns[table] = column_hash end columns = @table_columns[table] type_casted_row = {} row.each_pair do |column_name, value| type_casted_row[column_name] = columns[column_name].type_cast(value) end type_casted_row end