db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Dudziak (JIRA)" <derby-...@db.apache.org>
Subject [jira] Created: (DERBY-785) Cannot specify default value for DECIMAL(15,15) column
Date Sun, 25 Dec 2005 13:18:31 GMT
Cannot specify default value for DECIMAL(15,15) column
------------------------------------------------------

         Key: DERBY-785
         URL: http://issues.apache.org/jira/browse/DERBY-785
     Project: Derby
        Type: Bug
  Components: SQL  
    Versions: 10.1.2.1    
 Environment: Windows XP, Java 5
    Reporter: Thomas Dudziak


Creating this table does not work:

CREATE TABLE test
(
    pk INTEGER NOT NULL,
    value DECIMAL(15,15) DEFAULT 1.0 NOT NULL,
    PRIMARY KEY ("PK")
);

It does work however without the default value, e.g.

CREATE TABLE test
(
    pk INTEGER NOT NULL,
    value DECIMAL(15,15) NOT NULL,
    PRIMARY KEY ("PK")
);

or when reducing the scale:

CREATE TABLE test
(
    pk INTEGER NOT NULL,
    value DECIMAL(15,14) DEFAULT 1.0 NOT NULL,
    PRIMARY KEY ("PK")
);

The same holds true for a NUMERIC column.


-- 
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


Mime
View raw message