Book a Demo

Author Topic: PKs set always as unique (BUG?)  (Read 16428 times)

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: PKs set always as unique (BUG?)
« Reply #15 on: August 27, 2007, 03:15:13 am »
Buggerus meus. I non comprende (conprehenamo ??? ), you Pseudonaja affinis ???

bruce
;D
« Last Edit: August 27, 2007, 03:21:45 am by sargasso »
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
Re: PKs set always as unique (BUG?)
« Reply #16 on: August 27, 2007, 03:29:20 am »
I failed to exaplain my self again - When I makr several clumns as PKs (the only way in EA to create concatinated key) they are marked as unique and there is no way to change it - BUG!!!!
Recursion definition:
If you don’t understand the definition read "Recursion definition".

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: PKs set always as unique (BUG?)
« Reply #17 on: August 27, 2007, 03:38:09 am »
I am actually going to shut up here, because I feel you (two) may be right and I am not going to upgrade beyond 6.7 until this is fixed!!!

bruce
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: PKs set always as unique (BUG?)
« Reply #18 on: August 27, 2007, 06:27:05 am »
Quote
I failed to exaplain my self again - When I makr several clumns as PKs (the only way in EA to create concatinated key) they are marked as unique and there is no way to change it - BUG!!!!

I submitted a report of something similar to this during the final beta. No apparent change.
No, you can't have it!

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
Re: PKs set always as unique (BUG?)
« Reply #19 on: August 27, 2007, 09:06:57 am »
Thanks, i also opened a bug.
Recursion definition:
If you don’t understand the definition read "Recursion definition".

Thomas Mercer-Hursh

  • EA User
  • **
  • Posts: 386
  • Karma: +0/-0
  • Computing Integrity
    • View Profile
Re: PKs set always as unique (BUG?)
« Reply #20 on: August 27, 2007, 11:08:12 am »
Can one vote for bug resolutions or enhancements?  Multiple fields participating in a single primary key is very characteristic of the legacy applications with which I deal.  In fact, no guarantee that even the field combination is necessarily unique in all cases (no, these are not my designs!)

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
Re: PKs set always as unique (BUG?)
« Reply #21 on: August 27, 2007, 12:16:57 pm »
Don't know how, but I'll bug them a little...
Recursion definition:
If you don’t understand the definition read "Recursion definition".

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: PKs set always as unique (BUG?)
« Reply #22 on: August 27, 2007, 01:28:09 pm »
Quote
Can one vote for bug resolutions or enhancements?  Multiple fields participating in a single primary key is very characteristic of the legacy applications with which I deal.  In fact, no guarantee that even the field combination is necessarily unique in all cases (no, these are not my designs!)
This is the point of exposing the bug reports/feature requests via the forum.  The Sparxians can see a wide range of opinion and get a better appreciation of how the user community feels of the various topics.  Sometimes, like in this thread, it's also possible to explorer some of the more theoretical aspects of the problem.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: PKs set always as unique (BUG?)
« Reply #23 on: August 27, 2007, 04:16:06 pm »
Quote
When I makr several clumns as PKs (the only way in EA to create concatinated key) they are marked as unique and there is no way to change it - BUG!!!!

If there is a bug here, it's probably that EA just disables the checkbox and doesn't hide it. The "Unique" checkbox, if there was more room on the dialog, might be better named "Create Uniqueness Constraint". EA won't create a uniqueness constraint for a column which is part of a primary key (don't ask me why, I don't know the answer), so there's no point changing the value of the "Unique" checkbox, it won't have any effect. This is exactly the same behaviour as in EA 6.5.806 which I have just tried.

If you want to create a uniqueness constraint for a column that is part of a PK, check the Unique checkbox for some other column, change the <<unique>> operation that gets created so it refers to the PK column, then uncheck the Unique checkbox.
The Sparx Team
[email protected]

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: PKs set always as unique (BUG?)
« Reply #24 on: August 27, 2007, 05:02:38 pm »
Quote
If you want to create a uniqueness constraint for a column that is part of a PK, check the Unique checkbox for some other column, change the <<unique>> operation that gets created so it refers to the PK column, then uncheck the Unique checkbox.

And wait a (hopefully) brief while until this gets rectified.

Thanks for the insight and workaround Neil.

David
No, you can't have it!

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
Re: PKs set always as unique (BUG?)
« Reply #25 on: August 27, 2007, 07:12:13 pm »
Thanks, now I know it will be created properly, but yet it is not good and I want it to be changed.
I have reversed engineered tables with out unique mark for concatenated PKs and new once with it marked, it is not consistent and it doesn't make our designs look better.
please change it!
Recursion definition:
If you don’t understand the definition read "Recursion definition".

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
Re: PKs set always as unique (BUG?)
« Reply #26 on: August 29, 2007, 08:24:17 pm »
Quote
This issue will be resolved in release build 817.

So I guess this is the end of the issue
Recursion definition:
If you don’t understand the definition read "Recursion definition".