Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
10.6.1.0
-
None
-
Normal
-
Newcomer
-
Performance
Description
After the changes in DERBY-4582, these methods now allocate a default calendar object on each invocation (on the client driver), whereas they didn't before the fix:
ResultSet.getDate(int)
ResultSet.getTime(int)
ResultSet.getTimestamp(int)
PreparedStatement.setDate(int, java.sql.Date)
PreparedStatement.setTime(int, java.sql.Time)
PreparedStatement.setTimestamp(int, java.sql.Timestamp)
CallableStatement.getDate(int)
CallableStatement.getTime(int)
CallableStatement.getTimestamp(int)
The embedded driver prevents excessive allocation of default calendar objects in these methods by caching an instance in ConnectionChild (the super-class of EmbedResultSet, EmbedPreparedStatement and EmbedCallableStatement). We should do something similar on the client driver.
Attachments
Attachments
Issue Links
- is part of
-
DERBY-4582 Timestamps inserted with GMT calendar are 1 hour later when subsequently read with GMT calendar (Server Mode Only).
- Closed