[
https://issues.apache.org/jira/browse/DERBY-4615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Knut Anders Hatlen updated DERBY-4615:
--------------------------------------
Attachment: test.diff
Attached is a JUnit test case that exposes the bug. The test case calls a
procedure that takes date, time and timestamp values in its input parameters
and returns the exact same values through its output parameters. In the test,
the getters and setters on the callable statement are called with different
combinations of calendars with different time zones, and the test checks
whether the correct translation between the time zones has been performed.
With the client driver, the test passes. With the embedded driver, only the
part of the test that uses the local time zone passes.
> EmbedCallableStatement ignores Calendar in getDate, getTime and getTimestamp
> ----------------------------------------------------------------------------
>
> Key: DERBY-4615
> URL: https://issues.apache.org/jira/browse/DERBY-4615
> Project: Derby
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 10.5.3.0
> Reporter: Knut Anders Hatlen
> Assignee: Knut Anders Hatlen
> Attachments: test.diff
>
>
> The getDate(), getTime() and getTimestamp() methods in EmbedCallableStatement
> ignore the Calendar argument, and therefore give the wrong results if some
> other calendar than the default calendar is passed in. The client driver
> seems to do the right thing, though.
> Also note that none of these methods are ever called by any of the regression
> tests.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira