facebook

Create Foreign Key, Syntax Error (JDBC / Informix)

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #313558 Reply

    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

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

    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

    #314250 Reply

    Hibernate + Informix does not work together.

    Solution is, to change to openJPA,
    there, Infiiormix is suported.

    #314274 Reply

    support-swapna
    Moderator

    gramberg,

    Thank you for posting the solution.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Create Foreign Key, Syntax Error (JDBC / Informix)

You must be logged in to post in the forum log in