We're updating the issue view to help you get more done. 

length=... ignored in @Column(columnDefinition = "CHAR", length = 32)

Description

MySQL 5.5.

1 2 @Column(columnDefinition = "CHAR", length = 32) private String contentHash;

Created query:

1 create table texydoc (id INT UNSIGNED not null auto_increment, added datetime, content TEXT, contentHash CHAR, origPath varchar(255) unique, parsingException TEXT, renderedHtml TEXT, author_id bigint, primary key (id))

MySQL interprets this as `CHAR(1)`.

IMO the length should be used for column length:

(Optional) The column length. (Applies only if a string-valued column is used.)

Environment

None

Status

Assignee

Unassigned

Reporter

Ondra Žižka

Labels

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Affects versions

4.1.9

Priority

Major