I'm getting an error
Violation of PRIMARY or UNIQUE KEY constraint
when I try to run this insert
statement (from a C# interface):
INSERT INTO descript (PROPID, OBJID, NAME, CLASSID, LASTUPDATE,
HISTORY, VIVDRULE, CAPTION, PROMPT, DESCRIPTION)
VALUES (@PROPID, //110
@OBJID, //2109900055
@NAME, //Custom10
@CLASSID, //3
@LASTUPDATE, //4/29/2016
@HISTORY, // ''
@VIVDRULE, //1
@CAPTION, //test10
@PROMPT, //yo
@DESCRIPTION // ''
)
The specific error is:
Violation of PRIMARY or UNIQUE KEY constraint "DESCRIPTOR$OBJID" on table "DESCRIPT"*.
OBJID
is the primary key for that table.
However, if I run
select *
from descript
where objid = 2109900055
no rows are returned, so I know that there isn't actually a duplicate.
I've seen this, this, this, and this, but none of them seem to have an applicable solution, or at least, not one that works. I'm also using Firebird SQL, if that makes a difference.
Does anyone have any ideas?