Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D8EEED0E1 for ; Tue, 26 Jun 2012 14:10:44 +0000 (UTC) Received: (qmail 9969 invoked by uid 500); 26 Jun 2012 14:10:44 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 9938 invoked by uid 500); 26 Jun 2012 14:10:44 -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 9929 invoked by uid 99); 26 Jun 2012 14:10:44 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jun 2012 14:10:44 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 255821404B1 for ; Tue, 26 Jun 2012 14:10:43 +0000 (UTC) Date: Tue, 26 Jun 2012 14:10:42 +0000 (UTC) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Message-ID: <1645733343.56507.1340719844155.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1978581823.45765.1340402683177.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Assigned] (DERBY-5829) Lift DB2 restriction on the DEFAULT clause MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-5829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dag H. Wanvik reassigned DERBY-5829: ------------------------------------ Assignee: Dag H. Wanvik > Lift DB2 restriction on the DEFAULT clause > ------------------------------------------ > > Key: DERBY-5829 > URL: https://issues.apache.org/jira/browse/DERBY-5829 > Project: Derby > Issue Type: Sub-task > Components: SQL > Reporter: Dag H. Wanvik > Assignee: Dag H. Wanvik > Fix For: 10.10.0.0 > > Attachments: derby-5829.diff, derby-5829.status > > > DERBY-118 started out as a request to allow date-time functions values to be assigned to character columns. This is not standard SQL, but it turns out the Derby allows such conversions at DML time, e.g. in an INSERT statement. Investigating this we found that there a re several instances in which Derby is more restrictive in type conversion at DDL time that at DML time. These instances can be classifies as > a) legacy restrictions that are DB2 specific, but would be legal SQL if lifted > b) restrictions that are not legal SQL per the standard > This subtask addresses a). The original request falls into category b) and we decided not to fix those since this would allow users to write non-standard SQL, notwithstanding that fact the Derby also extends on the standard at DML time. Ideally, we would restrict those cases to follow the standard as well, but that woudl cause compatibility concerns. > Furthermore, a related issue is that type checks at DDL time, e.g. that a character literal is not too long for its column, are performed at DML time. This is not as per the standard, and we track an improvement in this area as > c) Catch type mismatch of DEFAULT values at DDL time (DERBY-5825) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira