Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 82882 invoked from network); 26 May 2007 22:30:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 May 2007 22:30:37 -0000 Received: (qmail 29436 invoked by uid 500); 26 May 2007 22:30:42 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 29226 invoked by uid 500); 26 May 2007 22:30:41 -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 29213 invoked by uid 99); 26 May 2007 22:30:41 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 May 2007 15:30:41 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 May 2007 15:30:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 36AF071403B for ; Sat, 26 May 2007 15:30:16 -0700 (PDT) Message-ID: <8071681.1180218616202.JavaMail.jira@brutus> Date: Sat, 26 May 2007 15:30:16 -0700 (PDT) From: "Myrna van Lunteren (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Reopened: (DERBY-729) Scalar time and date functions return 0 instead NULL when argument is NULL In-Reply-To: <660049881.1133186317644.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Myrna van Lunteren reopened DERBY-729: -------------------------------------- > Scalar time and date functions return 0 instead NULL when argument is NULL > -------------------------------------------------------------------------- > > Key: DERBY-729 > URL: https://issues.apache.org/jira/browse/DERBY-729 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.1.3.2, 10.2.1.6 > Reporter: Bernt M. Johnsen > Assigned To: Bernt M. Johnsen > Fix For: 10.3.0.0 > > Attachments: DERBY-729-1.diff, DERBY-729-1.stat > > > The scalar time and date functions should return NULL when argument is NULL. > Sample ij run that reproduces the bug > ij> create table dt (ts timestamp); > 0 rows inserted/updated/deleted > ij> insert into dt values ({ts '2005-11-28 14:49:40'}), (NULL); > 2 rows inserted/updated/deleted > ij> select * from dt; > TS > -------------------------- > 2005-11-28 14:49:40.0 > NULL > > 2 rows selected > ij> select {fn hour(ts)} from dt; > 1 > ----------- > 14 > 0 > might be a problem with other scalar functions too. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.