[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6075) registerVarcharTypes in MySQL5Dialect creates varchar for up to a length of 65535

Thomas Einwaller (JIRA) noreply at atlassian.com
Fri Apr 1 16:19:08 EDT 2011


registerVarcharTypes in MySQL5Dialect creates varchar for up to a length of 65535 
----------------------------------------------------------------------------------

                 Key: HHH-6075
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6075
             Project: Hibernate Core
          Issue Type: Bug
          Components: core
    Affects Versions: 3.3.0.SP1
         Environment: MySQL 5.1.52
            Reporter: Thomas Einwaller


while the registerVarcharTypes in the MySQLDialect only creates varchar columns with a length up to 255 

seems like a regression caused by this commit:

https://github.com/hibernate/hibernate-core/commit/d8d6d82e30960e0c255950eaf875ad48831b12b0

MySQL throws the following error:

Error Code: 1118
Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. You have to change some columns to TEXT or BLOBs

when trying to create a table with 3 varchar (20000) colums 

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