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

Description

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

Environment

MySQL 5.1.52

Activity

Show:
Brett Meyer
November 27, 2012, 1:48 AM

Default column sizes will be reworked in HHH-6045. Until then, please explicitly define column lengths on your varchars or use a custom dialect that extends/overrides MySQL5Dialect.

Rejected

Assignee

Brett Meyer

Reporter

Thomas Einwaller

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure