lib/taps/utils.rb in taps2-0.5.2 vs lib/taps/utils.rb in taps2-0.5.3

- old
+ new

@@ -55,17 +55,17 @@ only_data = data.collect do |row| row = blobs_to_string(row, string_columns) row.each do |column, value| if value.to_s.length > (max_lengths[column] || value.to_s.length) raise Taps::InvalidData.new(<<-ERROR) - Detected value that exceeds the length limitation of its column. This is - generally due to the fact that SQLite does not enforce length restrictions. +Detected value that exceeds the length limitation of its column. This is +generally due to the fact that SQLite does not enforce length restrictions. - Table : #{table} - Column : #{column} - Type : #{schema.detect{|s| s.first == column}.last[:db_type]} - Value : #{value} - ERROR +Table : #{table} +Column : #{column} +Type : #{schema.detect{|s| s.first == column}.last[:db_type]} +Value : #{value} +ERROR end end header.collect { |h| row[h] } end { :header => header, :data => only_data }