Bug 130532 - Relationship graph does not show up one to one relationship
Summary: Relationship graph does not show up one to one relationship
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
6.3.4.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-08 17:17 UTC by Claude Thomassin
Modified: 2020-09-24 04:11 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Claude Thomassin 2020-02-08 17:17:09 UTC
Description:
After setting a FK field to unique via SQL command, the relationship graph still  shows up a one to many relationship between my two tables.

https://ask.libreoffice.org/en/question/228432/one-to-one-relation-relationship-graph-does-not-show-up/
https://ask.libreoffice.org/fr/question/228412/graphe-de-relation-ne-montrant-pas-une-relation-11/

Steps to Reproduce:
1.create two tables with a PK in each one
2.create a FK in one table
3.set the FK to unique with SQL command to create a one to one relationship between the two tables
4.consult the relationship graph that shows a 1,N relation instead of a 1,1 relation

Actual Results:
the relationship graph shows a 1,N relation instead of 1,1 relation

Expected Results:
The relationship graph should shows up a 1,1 relation


Reproducible: Always


User Profile Reset: Yes



Additional Info:
The relationship graph shows up a 1,N relation
Comment 1 Robert Großkopf 2020-02-23 08:21:50 UTC
Please add an example and a description, which could be followed step by step. Special the SQL-code ...

Note: A one-to-one relationship is a relationship, which will connect the primary-keys of the two tables. You have to set the relation from the table, which should contain all key-values, to the table, which should contain only some key-values.

If you create a connection from a PK to a FK it will always be seen as 1:n, because there will be rows in the second table without any connection to the first, because the FK could be NULL.
Comment 2 Xisco Faulí 2020-02-25 10:57:47 UTC
Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)
Comment 3 QA Administrators 2020-08-24 03:49:32 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2020-09-24 04:11:17 UTC
Dear Claude Thomassin,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp