lib/dbd/odbc/statement.rb in dbd-odbc-0.2.4 vs lib/dbd/odbc/statement.rb in dbd-odbc-0.2.5

- old
+ new

@@ -122,10 +122,16 @@ # convert the ODBC datatypes to DBI datatypes def convert_row(row) return nil if row.nil? row.collect do |col| - col = col.to_s unless col.nil? - col + case col + when nil + nil + when ODBC::TimeStamp + DBI::Type::Timestamp.create col.year, col.month, col.day, col.hour, col.minute, col.second + else + col.to_s + end end end end