[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-5988) HBM2DLL creates invalid Create Table statement on MySQL 5.5.x because keyword *TYPE* is forbidden now

Nicklas Nordborg (JIRA) noreply at atlassian.com
Mon Mar 7 02:16:08 EST 2011


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

Nicklas Nordborg commented on HHH-5988:
---------------------------------------

This has been supported by Hibernate a long time. Just make sure that you use the org.hibernate.dialect.MySQL5InnoDBDialect dialect.

> HBM2DLL creates invalid Create Table statement on MySQL 5.5.x because keyword *TYPE* is forbidden now
> -----------------------------------------------------------------------------------------------------
>
>                 Key: HHH-5988
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5988
>             Project: Hibernate Core
>          Issue Type: Bug
>    Affects Versions: 3.6.1
>            Reporter: Sebastian Wagner
>
> In the latest MySQL Version the query that hbm2dll produces:
> create table adresses (adresses_id bigint not null, additionalname varchar(255), comment_field varchar(255), fax varchar(255), starttime datetime, state_id bigint, street varchar(255), town varchar(255), updatetime datetime, zip varchar(255), deleted varchar(255), email varchar(255), phone varchar(255), primary key (adresses_id)) TYPE=MyISAM
> will throw an error because of *TYPE=MyISAM* its name is now *ENGINE=MyISAM*
> so the complete query would be:
> create table adresses (adresses_id bigint not null, additionalname varchar(255), comment_field varchar(255), fax varchar(255), starttime datetime, state_id bigint, street varchar(255), town varchar(255), updatetime datetime, zip varchar(255), deleted varchar(255), email varchar(255), phone varchar(255), primary key (adresses_id)) ENGINE=MyISAM
> Unfortunally there seems to be neither a fix nor workaround for that Issue yet.

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