lib/monetdb/connection/query.rb in monetdb-0.2.0 vs lib/monetdb/connection/query.rb in monetdb-0.2.1

- old
+ new

@@ -74,11 +74,11 @@ {:table_name => table_name, :column_names => column_names, :column_types => column_types, :column_lengths => column_lengths}.freeze end def parse_rows(table_header, response) column_types = table_header[:column_types] - response.split("\t]\n").collect do |row| + response.slice(0..-3).split("\t]\n").collect do |row| parsed, values = [], row.slice(1..-1).split(",\t") values.each_with_index do |value, index| parsed << parse_value(column_types[index], value.strip) end parsed @@ -99,10 +99,10 @@ when :timestamp parse_date_time_value value when :tinyint parse_boolean_value value else - raise NotImplementedError, "Cannot parse value of type #{type}" + raise NotImplementedError, "Cannot parse value of type #{type.inspect}" end end end def parse_string_value(value)