Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 5071 invoked from network); 24 May 2005 02:43:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 May 2005 02:43:55 -0000 Received: (qmail 35325 invoked by uid 500); 24 May 2005 02:43:54 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 35291 invoked by uid 500); 24 May 2005 02:43:53 -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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 35275 invoked by uid 99); 24 May 2005 02:43:53 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 23 May 2005 19:43:53 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 981062A8 for ; Tue, 24 May 2005 04:36:53 +0200 (CEST) Message-ID: <1584787007.1116902213621.JavaMail.jira@ajax.apache.org> Date: Tue, 24 May 2005 04:36:53 +0200 (CEST) From: "Satheesh Bandaram (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Assigned: (DERBY-81) Datetime datatypes should allow arithmetic operations on them. In-Reply-To: <980410189.1101322042948.JavaMail.apache@nagoya> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-81?page=all ] Satheesh Bandaram reassigned DERBY-81: -------------------------------------- Assign To: Jack Klebanoff (was: Satheesh Bandaram) Please update the bug description according to your proposal. > Datetime datatypes should allow arithmetic operations on them. > -------------------------------------------------------------- > > Key: DERBY-81 > URL: http://issues.apache.org/jira/browse/DERBY-81 > Project: Derby > Type: New Feature > Components: SQL > Versions: 10.0.2.0 > Environment: Generic > Reporter: Satheesh Bandaram > Assignee: Jack Klebanoff > > Datetime datatypes in Derby are date, time and timestamp. Currently Derby doesn't allow any arithmetic operations on them, limiting their use. It would be great to allow statements like: > SELECT * FROM log > WHERE modified_time > CURRENT_TIMESTAMP - 1 MONTH > Commercial databases like Oracle, DB2 and mySQL also have this feature. SQL standard allows these operations along with INTERVAL types. Since Derby doesn't have INTERVAL datatypes, I would like to propose datetime arithmetic to Derby without INTERVALs. > It should be possible to add, subtract datetime datatypes with a constant like '1 MONTH' (called a duration or INTERVAL in SQL standard). It should also be possible to subtract datetime types where the semantics are allowed according to SQL standard specification. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira