Description:
When using the lino relation extract command with Lino versions 2.5.0 and 3.0.2 on an Oracle database, the command generates two separate relations instead of a single relation with a composite key. Here is an illustrative example:
Generated YAML:
- name: FKDD01421_DD01405
parent:
name: DD01405_COMPETENCE
keys:
- ID_INDIVIDU
child:
name: DD01421_COMPETENCE_VALIDEE
keys:
- ID_INDIVIDU
- name: FKDD01421_DD01405
parent:
name: DD01405_COMPETENCE
keys:
- ID_COMPETENCE
child:
name: DD01421_COMPETENCE_VALIDEE
keys:
- ID_COMPETENCE
Expected YAML:
The command should generate a single relation with a composite key as shown below:
- name: FKDD01421_DD01405
parent:
name: DD01405_COMPETENCE
keys:
- ID_COMPETENCE
- ID_INDIVIDU
child:
name: DD01421_COMPETENCE_VALIDEE
keys:
- ID_INDIVIDU
- ID_COMPETENCE
Affected Versions:
Environment: