From this question, I have revised by adding a field,ID, as primary key into the table with the following SQL:
create table "AlternativeCode" ("ID" bigint generated by default as identity primary key, "AlternativeCode" varchar(100) not null, "Code1" varchar(2) not null, "Code2" varchar(2) not null, "Code3" varchar(2) not null, constraint "ConcatAll" unique ("AlternativeCode", "Code1", "Code2", "Code3"))
Existing table:
Result of testing:
Why do these following data violate constraint ?
LOCalcBASIC_ViolatingCONSTRAINTInFirebird_ConcatenateAllFields.odb (7.3 KB)
Version: 7.1.6.2.0+
Build ID: 10(Build:2)
CPU threads: 4; OS: Linux 5.13; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Fedora 34 Workstation Official Edition