Bug 159155 - FIREBIRD: Tables, created with "Set default Collation…", couldn't be read in external database, if database is used on other system
Summary: FIREBIRD: Tables, created with "Set default Collation…", couldn't be read in ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
24.2.0.1 rc
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-12 15:19 UTC by Robert Großkopf
Modified: 2024-05-06 14:33 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Zip contains an external Firebird file and Base file, which connects to the same internal database file. (76.11 KB, application/zip)
2024-01-12 15:19 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 2024-01-12 15:19:52 UTC
Created attachment 191891 [details]
Zip contains an external Firebird file and Base file, which connects to the same internal database file.

The attached package contains a database file "ohnecollviw.fdb", which has been created from an internal Firebird database under OpenSUSE Linux.
Connect this database file as external database to a Windows system.
There will be shown a table and a view in the tables folder.
Click on the view.
You will get an error:
COLLATION UNICODE for CHARACTER SET UTF8 is not installed. 

Code for the view ends with
…ORDER BY "Nachname" COLLATE UNICODE ASC.

Open the ODB-file "DB_ohne_Collation_View_Collation.odb". It's the file from which the external Firebird database file has been created.
Start the view. Could be started without any problem.

You could find the external database file in the temporary folder of your system. In windows it is always shown in upper cases: FIREBIRD.FDB.
You could copy this file and connect this external file to an external Firebird ODB-file. View starts without any problem.

When opening this extracted file under OpenSUSE you will get the same warning as you have got under Windows with the OpenSUSE file.

It isn't possible to use an extracted file from one system in another if COLLATION has been set. And COLLATION must be set to get the right order when sorting tables, so I set this before creating any table. Result: No table will be shown in other systems if I extracted the Firebird database file in my system.
Comment 1 Alex Thurgood 2024-01-17 17:11:23 UTC
Confirming also on macOS.

firebird_sdbc error:
*COLLATION UNICODE for CHARACTER SET UTF8 is not installed
caused by
'isc_dsql_prepare'

Tested with 
Version: 7.5.9.2 (AARCH64) / LibreOffice Community
Build ID: cdeefe45c17511d326101eed8008ac4092f278a9
CPU threads: 8; OS: Mac OS X 14.2.1; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded
Comment 2 Robert Großkopf 2024-05-06 14:32:46 UTC
Have setup a new system and got the same buggy behavior with the file I had extracted before and tested then with Win-System. Couldn't open any file I have extracted before with collation.

System now is OpenSUSE 15.6, but I haven't installed any Firebird server here. So might be a buggy behavior of external file together with installed Firebird server on the same system…