[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-1501) Derby 10 varchar limit is 32672

Steven Swor (JIRA) noreply at atlassian.com
Thu Apr 2 17:53:39 EDT 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=32777#action_32777 ] 

Steven Swor commented on HHH-1501:
----------------------------------

This is a documented issue with Derby: http://issues.apache.org/jira/browse/DERBY-102

The Derby team's "fix" was to make their documentation reflect the ~32K character limit instead of increasing the limit itself.

So, to make a long story short, Derby doesn't allow VARCHAR, LONG VARCHAR, VARCHAR FOR BIT DATA, or LONG VARCHAR FOR BIT DATA columns longer than ~32K.

So it sounds like the real "fix" for Hibernate would be for someone to go into the Derby project and increase the limit there.

> Derby 10 varchar limit  is 32672
> --------------------------------
>
>                 Key: HHH-1501
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1501
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.1.2
>         Environment: Derby 10
>            Reporter: Sergey Vladimirov
>            Priority: Trivial
>
> Derby 10 varchar limit  is 32672.
> One need to change DB2Dialect and DerbyDialect to create clob columns, if size of text > 32k:
>         registerColumnType(Types.CHAR, 254, "char(1)");
>         registerColumnType(Types.VARCHAR, 32672, "varchar($l)");
>         registerColumnType(Types.VARCHAR, Integer.MAX_VALUE, "clob($l)");
> (BTW, char limit is 254).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list