db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Hillegas (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-2602) TIMESTAMP value is truncated when return to client
Date Tue, 13 Apr 2010 13:56:49 GMT

     [ https://issues.apache.org/jira/browse/DERBY-2602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Rick Hillegas updated DERBY-2602:

    Attachment: derby-2602-01-ae-dontTruncate.diff

Thanks for those suggestions, Knut. Attaching derby-2602-01-ae-dontTruncate.diff, which eliminates
the extra cached version of NetDatabaseMetaData. However, things are still a little pear-shaped.
I am not able to remove serverSupportsTimestampNanoseconds() from the Agent classes. This
is because that method is implemented in the net package but is needed by Cursor in the am
package. It seems wrong to me for an am class to directly reference net classes. Mind you,
I'm not a big fan of the split between am and net, but there it is. Thanks.

> TIMESTAMP value is truncated  when return to client
> ---------------------------------------------------
>                 Key: DERBY-2602
>                 URL: https://issues.apache.org/jira/browse/DERBY-2602
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Client
>    Affects Versions:
>            Reporter: Kathey Marsden
>            Assignee: Rick Hillegas
>            Priority: Minor
>         Attachments: d2602.java, derby-2602-01-ad-dontTruncate.diff, derby-2602-01-ae-dontTruncate.diff
> In ParameterMappingTest   I see the following differences between embedded and client.
 Client is truncating the TIMESTAMP value.  Look for this bug number in the test for reproduction.
>  case java.sql.Types.TIMESTAMP:
>             if (param == 2)
>                 if (usingEmbedded())
>                     assertEquals("2004-03-12 21:14:24.938222433", val.toString());
>                 else
>                     assertEquals("2004-03-12 21:14:24.938222", val.toString());
>             else if (param == 3)
>                 if (usingEmbedded())
>                     assertEquals("2004-04-12 04:25:26.462983731", val.toString());
>                 else
>                     assertEquals("2004-04-12 04:25:26.462983", val.toString());
>             break; 

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


View raw message