Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 54584 invoked from network); 10 Nov 2009 02:07:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Nov 2009 02:07:56 -0000 Received: (qmail 97114 invoked by uid 500); 10 Nov 2009 02:07:56 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 97039 invoked by uid 500); 10 Nov 2009 02:07:55 -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 97031 invoked by uid 99); 10 Nov 2009 02:07:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Nov 2009 02:07:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Nov 2009 02:07:53 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 66E88234C046 for ; Mon, 9 Nov 2009 18:07:32 -0800 (PST) Message-ID: <998355385.1257818852407.JavaMail.jira@brutus> Date: Tue, 10 Nov 2009 02:07:32 +0000 (UTC) From: "Bryan Pendleton (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Resolved: (DERBY-4106) The Reference Gulde claims that the INTEGER function can be applied to dates and times In-Reply-To: <863205902.1237637690524.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bryan Pendleton resolved DERBY-4106. ------------------------------------ Resolution: Fixed Fix Version/s: 10.6.0.0 Commited to the documentation trunk as revision 834300. > The Reference Gulde claims that the INTEGER function can be applied to dates and times > -------------------------------------------------------------------------------------- > > Key: DERBY-4106 > URL: https://issues.apache.org/jira/browse/DERBY-4106 > Project: Derby > Issue Type: Bug > Components: Documentation > Affects Versions: 10.4.2.0 > Environment: MS Windows XP Professional Version 2002 Service Pack 2, running NetBeans IDE 6.5 > Reporter: Nelson Rodrigues > Assignee: Bryan Pendleton > Fix For: 10.6.0.0 > > Attachments: docs.diff, rrefbuiltinteger.html > > > When Derby Reference Manual, version 10.4, explains the INTEGER function is said that: > "The INTEGER function returns an integer representation of a number, character string, > DATE, or time in the form of an integer constant" > But when I try to convert a DATE to INTEGER I receive an sqlstate 42846: "Cannot convert types 'DATE' to 'INTEGER'." > This is a sample query where the expected result is the integer number 1: > select integer(date(1)) from SYSIBM.SYSDUMMY1 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.