krummas / DrizzleJDBC

A BSD licensed JDBC driver for Drizzle and MySQL
BSD 3-Clause "New" or "Revised" License
31 stars 22 forks source link

Fix for MySQL DateTime handling dropping time portion of data. #16

Closed jterrill closed 11 years ago

jterrill commented 11 years ago

MySQLDateType is mapping data of type DateTime into a java.sql.Date class. This class clears the time portion of the data so it is always '00:00:00'. Change to java.sql.Timestamp which also extends java.util.Date but is mean to maintain the time and date information properly.

krummas commented 11 years ago

nice, thanks!