Bug 135239 - FIREBIRD migration: Import of a specific table with a combined primary key fails
Summary: FIREBIRD migration: Import of a specific table with a combined primary key fails
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
6.4.4.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Database-Firebird-Migration
  Show dependency treegraph
 
Reported: 2020-07-28 15:27 UTC by Robert Großkopf
Modified: 2023-03-22 06:42 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
HSQLDB database. Copy the database before migrating! You will need the HSQLDB content. (195.59 KB, application/vnd.oasis.opendocument.database)
2020-07-28 15:27 UTC, Robert Großkopf
Details
Screenshot from Firebird import shows: 1 table is missing, couldn't set complete relations ... (42.39 KB, image/png)
2020-07-28 15:29 UTC, Robert Großkopf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Großkopf 2020-07-28 15:27:58 UTC
Created attachment 163701 [details]
HSQLDB database. Copy the database before migrating! You will need the HSQLDB content.

Copy the attached database for testing to import later ...

Set experimental functions to "yes".
Open the attached HSQLDB-database and switch to the tables.
Let the migration wizard for Firebird do his work.
An error appears: Table rel_Kasse_Kategorie does not exist (see second attachment).
Ok - let us have a look:
The relations couldn't be completely created because the table hasn't be imported.
Save the database, close it and set experimental functions to "no".

Now open the database with a new name, "Beispiel_Haushaltsbuch_Firebird.odb" for example.
Open the copy of the database, which is HSQLDB.
Copy the table from Hsqldb to Firebird.
Only the structure of the table will be copied. Copying the content will fail. No way to get the content copy directly from HSQLDB to Firebird for this table.

Copy the content from the table to Calc.
Mark the content and move it by pressing left mousebutton to Firebird.
You could insert the content to the table in Firebird.

Expected behavior: Minimum for a migration has to be: Copying and inserting of tables has to run without problems.
Comment 1 Robert Großkopf 2020-07-28 15:29:01 UTC
Created attachment 163702 [details]
Screenshot from Firebird import shows: 1 table is missing, couldn't set complete relations ...
Comment 2 Alex Thurgood 2020-07-29 09:06:22 UTC
(In reply to Robert Großkopf from comment #0)


> An error appears: Table rel_Kasse_Kategorie does not exist (see second
> attachment).

Confirming.

> Now open the database with a new name, "Beispiel_Haushaltsbuch_Firebird.odb"
> for example.
> Open the copy of the database, which is HSQLDB.
> Copy the table from Hsqldb to Firebird.
> Only the structure of the table will be copied. Copying the content will
> fail. No way to get the content copy directly from HSQLDB to Firebird for
> this table.

Confirming

> 
> Copy the content from the table to Calc.
> Mark the content and move it by pressing left mousebutton to Firebird.
> You could insert the content to the table in Firebird.
> 

Confirming

Tested with
Version : 6.4.6.1
Build ID : 985dd72ca280d5c6da2e9f90f7ff9286cafe7ff8
Threads CPU : 8; OS : Mac OS X 10.15.5; UI Render : par défaut; VCL: osx; 
Locale : fr-FR (fr_FR.UTF-8); Langue IHM : fr-FR
Calc: threaded
Comment 3 Julien Nabet 2021-03-21 09:13:45 UTC
Specific to Firebird migration.
Comment 4 QA Administrators 2023-03-22 03:24:03 UTC Comment hidden (obsolete)
Comment 5 Robert Großkopf 2023-03-22 06:42:01 UTC
Bug is still the same with LO 7.5.1.2.
Opened the attached database (with experimental features 'on').
Opened the table pane and started migration to Firebird.
Table rel_Kasse_Kategorie (Combination of 2 fields for primary key) has not been migrated - error.

Tested with LO 7.5.1.2 on OpenSUSE 15.3 64bit rpm Linux.