Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 69588 invoked from network); 1 Feb 2011 05:21:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Feb 2011 05:21:23 -0000 Received: (qmail 5680 invoked by uid 500); 1 Feb 2011 05:21:23 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 5558 invoked by uid 500); 1 Feb 2011 05:21:20 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 5530 invoked by uid 99); 1 Feb 2011 05:21:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Feb 2011 05:21:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Feb 2011 05:21:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1259B183A67 for ; Tue, 1 Feb 2011 05:20:29 +0000 (UTC) Date: Tue, 1 Feb 2011 05:20:29 +0000 (UTC) From: "C.S. Nirmal J. Fernando (JIRA)" To: derby-dev@db.apache.org Message-ID: <2082776979.1521.1296537629071.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Reopened: (DERBY-4626) Timestamp truncated when converted to string with explicit calendar MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-4626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] C.S. Nirmal J. Fernando reopened DERBY-4626: -------------------------------------------- > Timestamp truncated when converted to string with explicit calendar > ------------------------------------------------------------------- > > Key: DERBY-4626 > URL: https://issues.apache.org/jira/browse/DERBY-4626 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.5.3.0 > Reporter: Knut Anders Hatlen > Assignee: C.S. Nirmal J. Fernando > Fix For: 10.7.1.1 > > Attachments: TimestampToVarchar.java, test.diff > > > When setting the value of a VARCHAR parameter with setTimestamp() the timestamp is truncated to microsecond resolution if a calendar is specified. Nanosecond resolution is preserved when a calendar is not specified. These two methods should behave the same way. Since Derby supports nanosecond resolution, the timestamps should not be truncated. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira