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 "Jason Palmatier (JIRA)" <de...@db.apache.org> on 2004/10/29 23:44:32 UTC
[jira] Created: (DERBY-52) Cannot create CHAR column with size greater than 254
Cannot create CHAR column with size greater than 254
----------------------------------------------------
Key: DERBY-52
URL: http://issues.apache.org/jira/browse/DERBY-52
Project: Derby
Type: Bug
Components: SQL
Versions: 10.0.2.0
Environment: Dell Dimension 2350, 2GHz P4, 1 Gig RAM,
Window XP Pro Version 2002, SP2
JDK 1.4.2_03, build 1.4.2_03-b02
Derby Snapshot SVN version 46005 (Binaries)
Reporter: Jason Palmatier
An attempt to create a table that contains a column of type CHAR with a size greater than 254 using the SQL statement
CREATE TABLE dummyTable ( column1 char(255),column2 char(10),column3 char(10) )
results in the following SQL Exception:
SQL Exception: The length, precision, or scale attribute for column, or type mapping 'CHAR(255)' is not valid.
SQL Error: 30000
SQL State: 42611
However, if you decrease column1's length by one as below, the table is created successfully:
CREATE TABLE dummyTable ( column1 char(254),column2 char(10),column3 char(10) )
The Derby Reference Manual states that the limit on the length of a CHAR data type is java.lang.Integer.MAX_VALUE:
http://incubator.apache.org/derby/manuals/reference/sqlj128.html#HDRSII-SQLJ-13733
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
[jira] Commented: (DERBY-52) Cannot create CHAR column with size
greater than 254
Posted by "Kristian Waagan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12665062#action_12665062 ]
Kristian Waagan commented on DERBY-52:
--------------------------------------
The maximum length of the CHAR data type is 254 characters.
As far as I can see, the reference manual still doesn't specify the maximum length of CHAR correctly in all places.
Wrong/not-mentioned: http://db.apache.org/derby/docs/dev/ref/ref-single.html#rrefsqlj13733
Correct: http://db.apache.org/derby/docs/dev/ref/ref-single.html#rrefstringlimits
I filed DERBY-4025 to get the documentation fixed.
> Cannot create CHAR column with size greater than 254
> ----------------------------------------------------
>
> Key: DERBY-52
> URL: https://issues.apache.org/jira/browse/DERBY-52
> Project: Derby
> Issue Type: Bug
> Components: Documentation
> Affects Versions: 10.0.2.0
> Environment: Dell Dimension 2350, 2GHz P4, 1 Gig RAM,
> Window XP Pro Version 2002, SP2
> JDK 1.4.2_03, build 1.4.2_03-b02
> Derby Snapshot SVN version 46005 (Binaries)
> Reporter: Jason Palmatier
>
> An attempt to create a table that contains a column of type CHAR with a size greater than 254 using the SQL statement
> CREATE TABLE dummyTable ( column1 char(255),column2 char(10),column3 char(10) )
> results in the following SQL Exception:
> SQL Exception: The length, precision, or scale attribute for column, or type mapping 'CHAR(255)' is not valid.
> SQL Error: 30000
> SQL State: 42611
> However, if you decrease column1's length by one as below, the table is created successfully:
> CREATE TABLE dummyTable ( column1 char(254),column2 char(10),column3 char(10) )
> The Derby Reference Manual states that the limit on the length of a CHAR data type is java.lang.Integer.MAX_VALUE:
> http://incubator.apache.org/derby/manuals/reference/sqlj128.html#HDRSII-SQLJ-13733
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (DERBY-52) Cannot create CHAR column with size greater than 254
Posted by "Jeff Levitt (JIRA)" <de...@db.apache.org>.
[ http://issues.apache.org/jira/browse/DERBY-52?page=comments#action_58578 ]
Jeff Levitt commented on DERBY-52:
----------------------------------
This has been fixed in the contributed DITA source files for the Derby Reference Manual.
> Cannot create CHAR column with size greater than 254
> ----------------------------------------------------
>
> Key: DERBY-52
> URL: http://issues.apache.org/jira/browse/DERBY-52
> Project: Derby
> Type: Bug
> Components: Documentation
> Versions: 10.0.2.0
> Environment: Dell Dimension 2350, 2GHz P4, 1 Gig RAM,
> Window XP Pro Version 2002, SP2
> JDK 1.4.2_03, build 1.4.2_03-b02
> Derby Snapshot SVN version 46005 (Binaries)
> Reporter: Jason Palmatier
>
> An attempt to create a table that contains a column of type CHAR with a size greater than 254 using the SQL statement
> CREATE TABLE dummyTable ( column1 char(255),column2 char(10),column3 char(10) )
> results in the following SQL Exception:
> SQL Exception: The length, precision, or scale attribute for column, or type mapping 'CHAR(255)' is not valid.
> SQL Error: 30000
> SQL State: 42611
> However, if you decrease column1's length by one as below, the table is created successfully:
> CREATE TABLE dummyTable ( column1 char(254),column2 char(10),column3 char(10) )
> The Derby Reference Manual states that the limit on the length of a CHAR data type is java.lang.Integer.MAX_VALUE:
> http://incubator.apache.org/derby/manuals/reference/sqlj128.html#HDRSII-SQLJ-13733
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
[jira] Commented: (DERBY-52) Cannot create CHAR column with size greater than 254
Posted by "Satheesh Bandaram (JIRA)" <de...@db.apache.org>.
[ http://nagoya.apache.org/jira/browse/DERBY-52?page=comments#action_55055 ]
Satheesh Bandaram commented on DERBY-52:
----------------------------------------
I believe the documentation is wrong here... The maximum size of CHAR allowed in Derby is 254, so the documentation needs to be changed.
> Cannot create CHAR column with size greater than 254
> ----------------------------------------------------
>
> Key: DERBY-52
> URL: http://nagoya.apache.org/jira/browse/DERBY-52
> Project: Derby
> Type: Bug
> Components: SQL
> Versions: 10.0.2.0
> Environment: Dell Dimension 2350, 2GHz P4, 1 Gig RAM,
> Window XP Pro Version 2002, SP2
> JDK 1.4.2_03, build 1.4.2_03-b02
> Derby Snapshot SVN version 46005 (Binaries)
> Reporter: Jason Palmatier
>
> An attempt to create a table that contains a column of type CHAR with a size greater than 254 using the SQL statement
> CREATE TABLE dummyTable ( column1 char(255),column2 char(10),column3 char(10) )
> results in the following SQL Exception:
> SQL Exception: The length, precision, or scale attribute for column, or type mapping 'CHAR(255)' is not valid.
> SQL Error: 30000
> SQL State: 42611
> However, if you decrease column1's length by one as below, the table is created successfully:
> CREATE TABLE dummyTable ( column1 char(254),column2 char(10),column3 char(10) )
> The Derby Reference Manual states that the limit on the length of a CHAR data type is java.lang.Integer.MAX_VALUE:
> http://incubator.apache.org/derby/manuals/reference/sqlj128.html#HDRSII-SQLJ-13733
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
[jira] Resolved: (DERBY-52) Cannot create CHAR column with size greater than 254
Posted by "Myrna van Lunteren (JIRA)" <de...@db.apache.org>.
[ http://issues.apache.org/jira/browse/DERBY-52?page=all ]
Myrna van Lunteren resolved DERBY-52:
-------------------------------------
Resolution: Fixed
(Visible to derby-developers)
> Cannot create CHAR column with size greater than 254
> ----------------------------------------------------
>
> Key: DERBY-52
> URL: http://issues.apache.org/jira/browse/DERBY-52
> Project: Derby
> Type: Bug
> Components: Documentation
> Versions: 10.0.2.0
> Environment: Dell Dimension 2350, 2GHz P4, 1 Gig RAM,
> Window XP Pro Version 2002, SP2
> JDK 1.4.2_03, build 1.4.2_03-b02
> Derby Snapshot SVN version 46005 (Binaries)
> Reporter: Jason Palmatier
>
> An attempt to create a table that contains a column of type CHAR with a size greater than 254 using the SQL statement
> CREATE TABLE dummyTable ( column1 char(255),column2 char(10),column3 char(10) )
> results in the following SQL Exception:
> SQL Exception: The length, precision, or scale attribute for column, or type mapping 'CHAR(255)' is not valid.
> SQL Error: 30000
> SQL State: 42611
> However, if you decrease column1's length by one as below, the table is created successfully:
> CREATE TABLE dummyTable ( column1 char(254),column2 char(10),column3 char(10) )
> The Derby Reference Manual states that the limit on the length of a CHAR data type is java.lang.Integer.MAX_VALUE:
> http://incubator.apache.org/derby/manuals/reference/sqlj128.html#HDRSII-SQLJ-13733
--
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
[jira] Closed: (DERBY-52) Cannot create CHAR column with size greater than 254
Posted by "Jeff Levitt (JIRA)" <de...@db.apache.org>.
[ http://issues.apache.org/jira/browse/DERBY-52?page=all ]
Jeff Levitt closed DERBY-52:
----------------------------
Fixed in 10.1.0.0
> Cannot create CHAR column with size greater than 254
> ----------------------------------------------------
>
> Key: DERBY-52
> URL: http://issues.apache.org/jira/browse/DERBY-52
> Project: Derby
> Type: Bug
> Components: Documentation
> Versions: 10.0.2.0
> Environment: Dell Dimension 2350, 2GHz P4, 1 Gig RAM,
> Window XP Pro Version 2002, SP2
> JDK 1.4.2_03, build 1.4.2_03-b02
> Derby Snapshot SVN version 46005 (Binaries)
> Reporter: Jason Palmatier
>
> An attempt to create a table that contains a column of type CHAR with a size greater than 254 using the SQL statement
> CREATE TABLE dummyTable ( column1 char(255),column2 char(10),column3 char(10) )
> results in the following SQL Exception:
> SQL Exception: The length, precision, or scale attribute for column, or type mapping 'CHAR(255)' is not valid.
> SQL Error: 30000
> SQL State: 42611
> However, if you decrease column1's length by one as below, the table is created successfully:
> CREATE TABLE dummyTable ( column1 char(254),column2 char(10),column3 char(10) )
> The Derby Reference Manual states that the limit on the length of a CHAR data type is java.lang.Integer.MAX_VALUE:
> http://incubator.apache.org/derby/manuals/reference/sqlj128.html#HDRSII-SQLJ-13733
--
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
[jira] Updated: (DERBY-52) Cannot create CHAR column with size greater than 254
Posted by "Daniel John Debrunner (JIRA)" <de...@db.apache.org>.
[ http://nagoya.apache.org/jira/browse/DERBY-52?page=history ]
Daniel John Debrunner updated DERBY-52:
---------------------------------------
Component: Documentation
(was: SQL)
> Cannot create CHAR column with size greater than 254
> ----------------------------------------------------
>
> Key: DERBY-52
> URL: http://nagoya.apache.org/jira/browse/DERBY-52
> Project: Derby
> Type: Bug
> Components: Documentation
> Versions: 10.0.2.0
> Environment: Dell Dimension 2350, 2GHz P4, 1 Gig RAM,
> Window XP Pro Version 2002, SP2
> JDK 1.4.2_03, build 1.4.2_03-b02
> Derby Snapshot SVN version 46005 (Binaries)
> Reporter: Jason Palmatier
>
> An attempt to create a table that contains a column of type CHAR with a size greater than 254 using the SQL statement
> CREATE TABLE dummyTable ( column1 char(255),column2 char(10),column3 char(10) )
> results in the following SQL Exception:
> SQL Exception: The length, precision, or scale attribute for column, or type mapping 'CHAR(255)' is not valid.
> SQL Error: 30000
> SQL State: 42611
> However, if you decrease column1's length by one as below, the table is created successfully:
> CREATE TABLE dummyTable ( column1 char(254),column2 char(10),column3 char(10) )
> The Derby Reference Manual states that the limit on the length of a CHAR data type is java.lang.Integer.MAX_VALUE:
> http://incubator.apache.org/derby/manuals/reference/sqlj128.html#HDRSII-SQLJ-13733
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
[jira] Commented: (DERBY-52) Cannot create CHAR column with size
greater than 254
Posted by "Alejandro Torras (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12664847#action_12664847 ]
Alejandro Torras commented on DERBY-52:
---------------------------------------
Same error in Apache Derby - 10.4.1.3 - (648739)
CREATE TABLE "APP"."TB_CORE_AUTH" ( AUT_CERT CHAR(1244) );
Error: El atributo de longitud, precisión o escala para columna o correlación de tipo 'CHAR(1244)' no es válido.
SQLState: 42611
ErrorCode: -1
> Cannot create CHAR column with size greater than 254
> ----------------------------------------------------
>
> Key: DERBY-52
> URL: https://issues.apache.org/jira/browse/DERBY-52
> Project: Derby
> Issue Type: Bug
> Components: Documentation
> Affects Versions: 10.0.2.0
> Environment: Dell Dimension 2350, 2GHz P4, 1 Gig RAM,
> Window XP Pro Version 2002, SP2
> JDK 1.4.2_03, build 1.4.2_03-b02
> Derby Snapshot SVN version 46005 (Binaries)
> Reporter: Jason Palmatier
>
> An attempt to create a table that contains a column of type CHAR with a size greater than 254 using the SQL statement
> CREATE TABLE dummyTable ( column1 char(255),column2 char(10),column3 char(10) )
> results in the following SQL Exception:
> SQL Exception: The length, precision, or scale attribute for column, or type mapping 'CHAR(255)' is not valid.
> SQL Error: 30000
> SQL State: 42611
> However, if you decrease column1's length by one as below, the table is created successfully:
> CREATE TABLE dummyTable ( column1 char(254),column2 char(10),column3 char(10) )
> The Derby Reference Manual states that the limit on the length of a CHAR data type is java.lang.Integer.MAX_VALUE:
> http://incubator.apache.org/derby/manuals/reference/sqlj128.html#HDRSII-SQLJ-13733
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (DERBY-52) Cannot create CHAR column
with size greater than 254
Posted by "Alejandro Torras (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12664847#action_12664847 ]
atec edited comment on DERBY-52 at 1/17/09 8:59 AM:
----------------------------------------------------------------
Same error in Apache Derby - 10.4.1.3 - (648739)
---
CREATE TABLE "APP"."TB_CORE_AUTH" ( AUT_CERT CHAR(1244) );
Error: El atributo de longitud, precisión o escala para columna o correlación de tipo 'CHAR(1244)' no es válido.
SQLState: 42611
ErrorCode: -1
---
The VARCHAR type worked fine.
CREATE TABLE "APP"."TB_CORE_AUTH" ( AUT_CERT VARCHAR(1244) );
Regards.
was (Author: atec):
Same error in Apache Derby - 10.4.1.3 - (648739)
CREATE TABLE "APP"."TB_CORE_AUTH" ( AUT_CERT CHAR(1244) );
Error: El atributo de longitud, precisión o escala para columna o correlación de tipo 'CHAR(1244)' no es válido.
SQLState: 42611
ErrorCode: -1
> Cannot create CHAR column with size greater than 254
> ----------------------------------------------------
>
> Key: DERBY-52
> URL: https://issues.apache.org/jira/browse/DERBY-52
> Project: Derby
> Issue Type: Bug
> Components: Documentation
> Affects Versions: 10.0.2.0
> Environment: Dell Dimension 2350, 2GHz P4, 1 Gig RAM,
> Window XP Pro Version 2002, SP2
> JDK 1.4.2_03, build 1.4.2_03-b02
> Derby Snapshot SVN version 46005 (Binaries)
> Reporter: Jason Palmatier
>
> An attempt to create a table that contains a column of type CHAR with a size greater than 254 using the SQL statement
> CREATE TABLE dummyTable ( column1 char(255),column2 char(10),column3 char(10) )
> results in the following SQL Exception:
> SQL Exception: The length, precision, or scale attribute for column, or type mapping 'CHAR(255)' is not valid.
> SQL Error: 30000
> SQL State: 42611
> However, if you decrease column1's length by one as below, the table is created successfully:
> CREATE TABLE dummyTable ( column1 char(254),column2 char(10),column3 char(10) )
> The Derby Reference Manual states that the limit on the length of a CHAR data type is java.lang.Integer.MAX_VALUE:
> http://incubator.apache.org/derby/manuals/reference/sqlj128.html#HDRSII-SQLJ-13733
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.