[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-1501) Derby 10 varchar limit is 32672
Jeff Schnitzer (JIRA)
noreply at atlassian.com
Sun Sep 10 03:48:24 EDT 2006
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1501?page=comments#action_24395 ]
Jeff Schnitzer commented on HHH-1501:
-------------------------------------
A related issue is that if you have something like this:
@Column(length=SOMELENGTH)
byte[] stuff;
Then the DerbyDialect tries to create a "VARCHAR(SOMELENGTH) FOR BIT DATA" column, and SOMELENGTH cannot be particularly large of you get errors.
> Derby 10 varchar limit is 32672
> --------------------------------
>
> Key: HHH-1501
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1501
> Project: Hibernate3
> Type: Bug
> Components: core
> 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