You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Daniel John Debrunner (JIRA)" <de...@db.apache.org> on 2006/01/10 18:49:21 UTC

[jira] Resolved: (DERBY-785) Cannot specify default value for DECIMAL(15,15) column

     [ http://issues.apache.org/jira/browse/DERBY-785?page=all ]
     
Daniel John Debrunner resolved DERBY-785:
-----------------------------------------

    Resolution: Invalid

1.0 is out of range for the given decimal definition

> 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