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