Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 17484 invoked from network); 1 Sep 2010 15:13:25 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Sep 2010 15:13:25 -0000 Received: (qmail 90272 invoked by uid 500); 1 Sep 2010 15:13:25 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 89758 invoked by uid 500); 1 Sep 2010 15:13:23 -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 89735 invoked by uid 99); 1 Sep 2010 15:13:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Sep 2010 15:13:22 +0000 X-ASF-Spam-Status: No, hits=4.4 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of nirmal070125@gmail.com designates 209.85.216.179 as permitted sender) Received: from [209.85.216.179] (HELO mail-qy0-f179.google.com) (209.85.216.179) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Sep 2010 15:13:16 +0000 Received: by qyk9 with SMTP id 9so7823212qyk.10 for ; Wed, 01 Sep 2010 08:12:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=t2O5qHD9adaEmeuePptMviHL1nj0EYzYaHGhfjgVEuY=; b=YxslrVorZz7cjJTqugRFkknF6v8sDlyp1V4eqOWz7QXlnlWUTmRRxg3AwEToQjZ+hm jBsmx/0leaaJkSo0dIo0j02HMSkBg10dEBg1Byd6nAPwHfy8lfSIRa4lQNseGH9ANAJw KVulKfc4RXhIWIPSm5cmrJLYwTnG4qWam3Z2o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=KJCdB6YEWvJO25dBhzQH43y/lQsQsNOULJ/m06k3iNhZBwKaiRngx2uonCiknyfBpN lND6Bj1GNbgq95/U7LG+eibtZUtF33kJ9G78i8JesGVRATLGsS/dOrHXO0UDs43MMAsu Vdn25HH1ws34amg3B/J003YEHSeJPqF6AHp+0= MIME-Version: 1.0 Received: by 10.229.91.9 with SMTP id k9mr5650964qcm.248.1283353975467; Wed, 01 Sep 2010 08:12:55 -0700 (PDT) Received: by 10.229.184.3 with HTTP; Wed, 1 Sep 2010 08:12:55 -0700 (PDT) Date: Wed, 1 Sep 2010 20:42:55 +0530 Message-ID: Subject: Supporting nanoseconds resolution in an insertion From: Nirmal Fernando To: derby-dev@db.apache.org Content-Type: multipart/alternative; boundary=001636164a2bd443d3048f3421b9 --001636164a2bd443d3048f3421b9 Content-Type: text/plain; charset=ISO-8859-1 Hi All, While referring to DateTimeTest I found the following test case [1]. I think we should allow up to nanoseconds, but I am wondering whether it's not the ISO format. Is it ok to change this test case? A help is highly appreciated. Thanks. [1] /** * Don't allow more than microseconds in ISO format: cloudscape rejects. */ public void testISOFormat_MoreThanMicroseconds() throws SQLException{ Statement st = createStatement(); assertStatementError("22007", st, "insert into ts (ts1) values " + "('2003-03-05-17.05.43.999999999')"); assertStatementError("22007", st, " insert into ts (ts1) values " + "('2003-03-05-17.05.43.999999000')"); st.close(); } -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science & Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. --001636164a2bd443d3048f3421b9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi All,

While referring to DateTimeTest I found the foll= owing test case [1].
I think we should allow up to nanoseconds, b= ut I am wondering whether=A0
it's not the ISO format.=A0

Is it ok to change this test case?

=
A help is highly appreciated.

Thanks.

[1]
/**
=A0=A0 =A0 * =A0Don'= t allow more than microseconds in ISO format: cloudscape rejects.
=A0=A0 =A0 */
=A0=A0 =A0public void testISOFormat_MoreThanMi= croseconds() throws SQLException{
=A0=A0 =A0 =A0 =A0Statement st = =3D createStatement();
=A0=A0 =A0 =A0 =A0
=A0=A0 =A0 = =A0 =A0assertStatementError("22007", st, "insert into ts (ts= 1) values "
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0+ "('2003-03-05-17.05.43.99= 9999999')");

=A0=A0 =A0 =A0 =A0assertStat= ementError("22007", st, " insert into ts (ts1) values "=
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0+ "('2003-03-05-17.05= .43.999999000')");

=A0=A0 =A0 =A0 =A0st.close();
=A0=A0 =A0}--
Best Regards,
Nirmal

C.S.Nirmal J. Fernando
Departmen= t of Computer Science & Engineering,
Faculty of Engineering,
Univ= ersity of Moratuwa,
Sri Lanka.
--001636164a2bd443d3048f3421b9--