Unique Constraint Bug?
Posted: Fri 19 Feb 2010 15:56
Hi
If you're inserting data using the OraDeveloper Tools to Append a row, but the PK is generated on the server using a trigger (e.g. supplied from a sequence), you get the following error if you haven't refreshed the table since the last insert:-
Column 'ID' is constrained to be unique. Value '' is already present.
Yes the value of the new column is NULL because it was left blank, but it won't violate the constraint as the trigger will guard against this.
Thanks
If you're inserting data using the OraDeveloper Tools to Append a row, but the PK is generated on the server using a trigger (e.g. supplied from a sequence), you get the following error if you haven't refreshed the table since the last insert:-
Column 'ID' is constrained to be unique. Value '' is already present.
Yes the value of the new column is NULL because it was left blank, but it won't violate the constraint as the trigger will guard against this.
Thanks