LibreOffice V. 7.2.6.2
Split HSQLDB data base
Linux Mint v. 20
The Problem: My application is a document metadata tracker. The master table contains
a file name field. Many of the file names entered in this field contain a colon character.
Unfortunately, my backup system does not play nice with files that contain a colon in their
name. So, I renamed all these files, replacing the colon with an underscore. No problem.
This left the issue of making he same changes in the file name field of the master table.
I exported the data to a Calc file, made the appropriate changes, then imported the file into
a new master table. Again, no problem.
The difficulty starts here. The master table has a primary key field called ¨ÏD¨ which needs to auto
increment (AutoValue=yes). This field property did not set properly when I imported the data from Calc.
I used Villeroy´s suggestion in the post
to change the AutoValue property of the field:
ALTER TABLE “MasterTable” ALTER COLUMN “ID” INT IDENTITY
This worked as expected. BUT–when I try to enter data into the associated form I get the following
errors when the data is posted to the table.
Error inserting the new record /home/buildslave/source/libo-core/connectivity/source/commontools/dbtools.cxx:751
and
integrity constraint violation: unique constraint or index violation; SYS_PK_10129 table:
“MasterTable” /home/buildslave/source/libo-core/connectivity/source/drivers/jdbc/Object.cxx:175
Any thoughts? It´s most frustrating as I have already spent more time on this than if I had just taken the
brute force approach of individually editing each of the entries in the table. I imagine there is an SQL
solution as well, but … SQL!