krummas / DrizzleJDBC

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

Fixed parsing of floating point values using getInt, getLong, getShort and getByte #13

Closed misambart closed 11 years ago

misambart commented 11 years ago

Most JDBC drivers would not complain if getInt, getLong, getShort or getByte was called on a floating point value and would simply truncate the floating value instead (e.g. "1.9" would become "1", "-1.9" would become "-1").

krummas commented 11 years ago

Hi, I removed the windows line breaks, rebased and committed: https://github.com/krummas/DrizzleJDBC/commit/3516b9ce7c3cd7b756c3e9b2f63b91b6ca4c6856

thanks!