Author Topic: Issues with GUID of onnectors / relationships  (Read 3172 times)

Viking

  • EA User
  • **
  • Posts: 453
  • Karma: +2/-2
    • View Profile
Re: Issues with GUID of onnectors / relationships
« Reply #15 on: June 11, 2025, 01:04:44 am »
It did neither work on eap nor on MariaDB. I will try again.

Viking

  • EA User
  • **
  • Posts: 453
  • Karma: +2/-2
    • View Profile
Re: Issues with GUID of onnectors / relationships
« Reply #16 on: June 11, 2025, 04:23:21 am »

Hi @Geert, many thanks for your patience. On my installation these attributes doe not exist:

Code: [Select]
SELECT * FROM t_diagramlinks ->  t_diagramlinks does not have a Connector_lD, use Instance_ID instead
SELECT * FROM t_connector -> t_connector does not have a ConnectorID, but a Connector_ID instead

So this SQL-statement works:
Code: [Select]
SELECT d.ea_guid AS DiagramName
FROM ((t_diagramlinks dl
JOIN t_diagram d ON dl.DiagramID = d.Diagram_ID)
join t_connector c on c.Connector_ID = dl.Instance_ID)
WHERE c.ea_guid = '{BEFFA34C-4A29-46d0-AE21-96723A6FEC29}'

I thought that I was using the newest schema. I just set it up newly yesterday.
« Last Edit: June 11, 2025, 03:48:08 pm by Viking »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Issues with GUID of onnectors / relationships
« Reply #17 on: June 11, 2025, 07:26:32 am »
Instance_ID is something else. You need connectorID
I just verified, and this one actually works

Code: [Select]
SELECT *
FROM ((t_diagramlinks dl
JOIN t_diagram d ON dl.DiagramID = d.Diagram_ID)
join t_connector c on c.Connector_ID = dl.ConnectorID)
WHERE c.ea_guid = '{BEFFA34C-4A29-46d0-AE21-96723A6FEC29}'

The schema is unfortunately not consistent with the usage of underscores. Most of the times there's an underscore in "_ID" but sometimes not.

Geert

Geert

Viking

  • EA User
  • **
  • Posts: 453
  • Karma: +2/-2
    • View Profile
Re: Issues with GUID of onnectors / relationships
« Reply #18 on: June 17, 2025, 04:29:07 am »

@Geert, I got yours to work. But I had to change c.connectorID into c.connector_ID.