MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
gramberg
Post subject: Create Foreign Key, Syntax Error (JDBC / Informix)  PostPosted: Jan 05, 2011 - 08:10 PM
Registered Member
Registered Member


Joined: Apr 30, 2006
Posts: 13

Hi,

I use Infiormix JDBC. I tried (first time) to use the function "create foreign key) in the DB explorer. Just to learn mor about MyEclipse

I got an Syntax Error for the following DDL

Code:
alter table guttest:fest.vorgang
add constraint fk_gut_nr
  foreign Key (vg_gut)
  referencing guttest:fest.gut(gut_nr)


-------- Correct Syntax for Informix Backend ------------------

Code:
alter table "fest".vorgang add constraint (foreign key (vg_gut) references
    "fest".gut  constraint "fest".fk_vg_gut);



------------------------------

not this importend, it was just a try
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
gramberg
Post subject: RE: Create Foreign Key, Syntax Error (JDBC / Informix)  PostPosted: Feb 05, 2011 - 09:27 PM
Registered Member
Registered Member


Joined: Apr 30, 2006
Posts: 13

Hibernate + Informix does not work together.

Solution is, to change to openJPA,
there, Infiiormix is suported.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-swapna
Post subject: RE: Create Foreign Key, Syntax Error (JDBC / Informix)  PostPosted: Feb 07, 2011 - 06:40 AM



Joined: Nov 11, 2010
Posts: 2154

gramberg,

Thank you for posting the solution.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits