Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 54093 invoked from network); 7 Jun 2010 14:26:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Jun 2010 14:26:02 -0000 Received: (qmail 45174 invoked by uid 500); 7 Jun 2010 14:26:02 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 45152 invoked by uid 500); 7 Jun 2010 14:26:02 -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 45145 invoked by uid 99); 7 Jun 2010 14:26:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jun 2010 14:26:02 +0000 X-ASF-Spam-Status: No, hits=-1502.9 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jun 2010 14:26:01 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o57EPfAW013073 for ; Mon, 7 Jun 2010 14:25:41 GMT Message-ID: <8149034.2251275920741763.JavaMail.jira@thor> Date: Mon, 7 Jun 2010 10:25:41 -0400 (EDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Assigned: (DERBY-3856) difference between Embedded vs DerbyNetClient in format of return from timestamp(cast(? as varchar(32))) In-Reply-To: <1194004102.1219777964325.JavaMail.jira@brutus> 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-3856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen reassigned DERBY-3856: ----------------------------------------- Assignee: Knut Anders Hatlen > difference between Embedded vs DerbyNetClient in format of return from timestamp(cast(? as varchar(32))) > -------------------------------------------------------------------------------------------------------- > > Key: DERBY-3856 > URL: https://issues.apache.org/jira/browse/DERBY-3856 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.3.3.1, 10.4.2.0, 10.5.1.1 > Reporter: Myrna van Lunteren > Assignee: Knut Anders Hatlen > > There is a slight difference in how Embedded vs. DerbyNetClient return a specific cast. > This showed up during conversion of the test lang/datetime.sql which before was only run with Embedded... > The following sql: > prepare dateTimePS as 'values( date(cast(? as integer)),timestamp(cast(? as varchar(32))))'; > execute dateTimePS using 'values(cast(1 as integer), ''2003-03-05-17.05.43.111111'')'; > gives: > 1 |2 > ------------------------------------- > Embedded: 1970-01-01|2003-03-05-17.05.43.111111 > DerbyNetClient: 1970-01-01|2003-03-05 17:05:43.111111 > (in Embedded there's a '-' between date and time part, with DerbyNetClient a space; with Embedded the separator between time elements is ., with DerbyNetClient :. Embedded reflects the data as passed in, with DerbyNetClient it seems to be the default timestamp format). > I am not sure which is correct at this point, but I confirmed the behavior is like this in latest builds of trunk and 10.3 and 10.4 branches. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.