Book a Demo

Author Topic: Bug in data base aliases?  (Read 3236 times)

mac1929

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Bug in data base aliases?
« on: March 15, 2005, 07:34:32 am »
Hi there,

We're using EA Corporate 4.51, and are having some problems when using Aliases on database tables.

We have two tables:
Contexto_Ventana, alias CTXVENT
Elemento_de_contexto, alias ELEMENTO_CTXVENT
The latter has a foreing key to the former.

When we build the Oracle DDL of the second table checking "use alias if available" we get a wrong DDL.
The foreing key constraint does not referece the alias of the first table, it references its full name. That seems to be a bug.

This is the DDL generated:

CREATE TABLE ELEMENTO_CTXVENT (
..
..
)

ALTER TABLE ELEMENTO_CTXVENT ADD CONSTRAINT FK_ELEMENTO_CTXVENT_CTXVENT
FOREIGN KEY (ID_CTXVENT) REFERENCES Contexto_Ventana (ID_CTXVENT)
;

ALTER TABLE ELEMENTO_CTXVENT ADD CONSTRAINT FK_Elemento_de_c_Contexto_Vent
FOREIGN KEY (ID_CTXVENT_ANI) REFERENCES Contexto_Ventana (ID_CTXVENT)
;

this sentence should be:
FOREIGN KEY (ID_CTXVENT_ANI) REFERENCES CTXVENT (ID_CTXVENT)
;

cheers!

hd

  • EA Administrator
  • EA User
  • *****
  • Posts: 312
  • Karma: +0/-0
    • View Profile
Re: Bug in data base aliases?
« Reply #1 on: March 15, 2005, 01:34:55 pm »
Current build 749 does not have this problem.  :)

mac1929

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Bug in data base aliases?
« Reply #2 on: March 16, 2005, 12:41:24 am »
I've just upgraded to 749 and the problem is still there...  ???

Should I post this on the bug tracking system for registered users?

« Last Edit: March 16, 2005, 01:50:40 am by mac1929 »

hd

  • EA Administrator
  • EA User
  • *****
  • Posts: 312
  • Karma: +0/-0
    • View Profile
Re: Bug in data base aliases?
« Reply #3 on: March 16, 2005, 01:10:45 pm »
Yes thank you - with details of the tables and aliases.

mac1929

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Bug in data base aliases?
« Reply #4 on: March 17, 2005, 02:24:09 am »
Thanks Henk, I've just posted this issue on the bug track system.