Book a Demo

Author Topic: Table operation parameter position inconsistency  (Read 3876 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Table operation parameter position inconsistency
« on: April 13, 2023, 01:35:54 am »
Hello,

I found on a data model that table FK constraints (operations) have columns with the same position i.e. parameters in t_operationparams for the same operation are defined as follows:
id2 : pos = 0
id1 : pos = 0
othercol : pos = 1

I have a script that controls the order between a PK and FK constraint. Looping on each operation parameters collection, it randomly picks the first column as both have the same position.
Is there a way to fix this inconsistency ?
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Table operation parameter position inconsistency
« Reply #1 on: April 13, 2023, 04:47:38 am »
Well, no. There is some black magic (probably no fairy dust) in the sort order for attributes/operations. Only if you manually move one they get a reasonable pos set. Else it's a mix of their ID, name and who knows what. I gave up figuring out a rule.

q.