|
[
Permalink
| « Hide
]
Mike Youngstrom added a comment - 26/Apr/05 11:17 AM
Here is the simple patch.
Negative, this would cause other dbs to be slower. Make Postgres fix the bug.
btw, Hibernate3 CVS has an implemented getHashCode() for TimestampType Didn't realize it was 100% for sure postgreSQL's fault. Reading the javadocs it appears the calendar passed in is supposed to be used to manipulate the timestamp. The javadocs say "cal - the Calendar object the driver will use to construct the timestamp". It says it will use this "object" not a clone of it. I don't have access to any other databases at the moment but I hope it isn't common practice for the JDBC driver to modify the calendar passed in. I'll notify the PostgreSQL guys and see what they say.
Mike Didn't realize it was 100% for sure postgreSQL's fault. Reading the javadocs it appears the calendar passed in is supposed to be used to manipulate the timestamp. The javadocs say "cal - the Calendar object the driver will use to construct the timestamp". It says it will use this "object" not a clone of it. I don't have access to any other databases at the moment but I hope it isn't common practice for the JDBC driver to modify the calendar passed in. I'll notify the PostgreSQL guys and see what they say.
Mike The PostgreSQL JDBC has fixed the problem. Thanks for pointing me in the right direction.
Mike |
||||||||||||||||||||||||||||||||||||||||||||||||