Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 17477 invoked from network); 30 Aug 2007 17:43:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Aug 2007 17:43:37 -0000 Received: (qmail 42838 invoked by uid 500); 30 Aug 2007 17:43:24 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 42804 invoked by uid 500); 30 Aug 2007 17:43:24 -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 42702 invoked by uid 99); 30 Aug 2007 17:43:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Aug 2007 10:43:23 -0700 X-ASF-Spam-Status: No, hits=1.0 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.18.98.34] (HELO brmea-mail-3.sun.com) (192.18.98.34) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Aug 2007 17:44:17 +0000 Received: from fe-amer-06.sun.com ([192.18.108.180]) by brmea-mail-3.sun.com (8.13.6+Sun/8.12.9) with ESMTP id l7UHgsL0009478 for ; Thu, 30 Aug 2007 17:42:54 GMT Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0JNL00D01L09ZN00@mail-amer.sun.com> (original mail from Lance.Andersen@Sun.COM) for derby-dev@db.apache.org; Thu, 30 Aug 2007 11:42:54 -0600 (MDT) Received: from [129.150.67.7] by mail-amer.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0JNL002T6L7G0R68@mail-amer.sun.com> for derby-dev@db.apache.org; Thu, 30 Aug 2007 11:42:53 -0600 (MDT) Date: Thu, 30 Aug 2007 13:44:47 -0400 From: "Lance J. Andersen" Subject: Re: [jira] Commented: (DERBY-2235) Server doesnt support timestamps with timezone In-reply-to: <6984243.1188495631420.JavaMail.jira@brutus> Sender: Lance.Andersen@Sun.COM To: derby-dev@db.apache.org Message-id: <46D7020F.9070700@sun.com> MIME-version: 1.0 Content-type: multipart/alternative; boundary="Boundary_(ID_gbKqoTDL3EQuzmKOQET3nQ)" References: <6984243.1188495631420.JavaMail.jira@brutus> User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. --Boundary_(ID_gbKqoTDL3EQuzmKOQET3nQ) Content-type: text/plain; format=flowed; charset=UTF-8 Content-transfer-encoding: 7BIT fwiw, for JDBC.next i am looking at adding support for time and timestamp with TZ. -lance Daniel John Debrunner (JIRA) wrote: > [ https://issues.apache.org/jira/browse/DERBY-2235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523890 ] > > Daniel John Debrunner commented on DERBY-2235: > ---------------------------------------------- > > Ken> ... if a timezone-less string ordinarily defaults to GMT. Or is a tz-less string defaults to the system's tz ... > > It's neither. Derby's TIMESTAMP values are TIMESTAMP with no associated timezone information. > > For information on how the datetime values interact with JDBC see: > > http://db.apache.org/derby/docs/10.3/publishedapi/jdbc3/org/apache/derby/jdbc/package-summary.html > > > > >> Server doesnt support timestamps with timezone >> ---------------------------------------------- >> >> Key: DERBY-2235 >> URL: https://issues.apache.org/jira/browse/DERBY-2235 >> Project: Derby >> Issue Type: Improvement >> Components: SQL >> Affects Versions: 10.2.2.0 >> Reporter: Ken Johanson >> Priority: Minor >> >> DML with datetime literals having timzone offset data (ISO-8601): >> update tbl set dt1 = '2007-01-03 04:13:43.006 -0800' >> Causes: >> SQLException: The syntax of the string representation of a datetime value is incorrect. >> Error: -1 SQLSTATE: 22007 >> I believe that even if the storage does not (does it?) support timezone storage, the input of a TZ could be normalized (offset applied) to the default TZ. >> > > --Boundary_(ID_gbKqoTDL3EQuzmKOQET3nQ) Content-type: text/html; charset=UTF-8 Content-transfer-encoding: 7BIT fwiw,

for JDBC.next i am looking at adding support for time and timestamp with TZ.

-lance

Daniel John Debrunner (JIRA) wrote:
    [ https://issues.apache.org/jira/browse/DERBY-2235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523890 ] 

Daniel John Debrunner commented on DERBY-2235:
----------------------------------------------

Ken>  ... if a timezone-less string ordinarily defaults to GMT. Or is a tz-less string defaults to the system's tz ...

It's neither. Derby's TIMESTAMP values are TIMESTAMP with no associated timezone information. 

For information on how the datetime values interact with JDBC see:

 http://db.apache.org/derby/docs/10.3/publishedapi/jdbc3/org/apache/derby/jdbc/package-summary.html



  
Server doesnt support timestamps with timezone
----------------------------------------------

                Key: DERBY-2235
                URL: https://issues.apache.org/jira/browse/DERBY-2235
            Project: Derby
         Issue Type: Improvement
         Components: SQL
   Affects Versions: 10.2.2.0
           Reporter: Ken Johanson
           Priority: Minor

DML with datetime literals having timzone offset data (ISO-8601):
update tbl set dt1 = '2007-01-03 04:13:43.006 -0800'
Causes:
SQLException: The syntax of the string representation of a datetime value is incorrect.
Error: -1 SQLSTATE: 22007
I believe that even if the storage does not (does it?) support timezone storage, the input of a TZ could be normalized (offset applied) to the default TZ.
    

  
--Boundary_(ID_gbKqoTDL3EQuzmKOQET3nQ)--