[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2709) Informix dialect generates incorrect ALTER TABLE statement

Diego Pires Plentz (JIRA) noreply at atlassian.com
Sun Nov 11 08:17:30 EST 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_28770 ] 

Diego Pires Plentz commented on HHH-2709:
-----------------------------------------

This problem is valid with Informix v10. Btw, in v11, it can be used without changes.

Reference:
v10
http://publib.boulder.ibm.com/infocenter/idshelp/v10/topic/com.ibm.sqls.doc/sqls118.htm#sii-02alter-15021

v11
http://publib.boulder.ibm.com/infocenter/idshelp/v111/topic/com.ibm.sqls.doc/sqls107.htm#sii-02alter-27689
http://publib.boulder.ibm.com/infocenter/idshelp/v111/topic/com.ibm.sqls.doc/sqls137.htm#sii-02alter-40944
http://publib.boulder.ibm.com/infocenter/idshelp/v111/topic/com.ibm.sqls.doc/sqls116.htm#sii-02alter-40698

> Informix dialect generates incorrect ALTER TABLE statement
> ----------------------------------------------------------
>
>                 Key: HHH-2709
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2709
>             Project: Hibernate3
>          Issue Type: Bug
>          Components: metamodel
>    Affects Versions: 3.2.1, 3.2.2, 3.2.3, 3.2.4
>         Environment: Informix Dynamic Server 10.00.UC6, JDBC driver 3.00.JC3
>            Reporter: Ovidiu Feodorov
>            Assignee: Chris Bredesen
>
> org.hibernate.dialect.InformixDialect shipping with Hibernate 3.2.1 - 3.2.4 generates corrupted SQL, at least relative to Informix Dynamic Server 10.00.UC6.
> 2007-07-02 18:14:47,011 ERROR SchemaExport:274 - Unsuccessful: alter table A add constraint foreign key (B_ID) references collection constraint FK4AA13DBAA4271173 on delete cascade
> 2007-07-02 18:14:47,011 ERROR SchemaExport:275 - A syntax error has occurred.
> This is what the Dialect generates:
> alter table A add constraint foreign key ( B_ID) references collection constraint FKBC16C978A4271173 on delete cascade
> This is what works:
> alter table A add constraint foreign key (B_ID) references collection on delete cascade constraint FKBC16C978A4271173

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