Subject | Re: Insert succesfull while violating primary key constraint |
---|---|
Author | olivier_olmer |
Post date | 2003-06-19T11:48:52Z |
Hi Helen,
You are right! Thank you The indexes are disabled. Actually all the
indexes of all tables are inactive. Since I know for sure we did not
alter indexes to deactivate them. Simply we did not know this feature.
I like to know what else could cause this to happen.
The only thing we have done is dropping foreign key constraints to
speed up the delete of about 4.000.0000 records.
With kind regards,
Olivier Olmer
Oxolutions
--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@t...>
wrote:
You are right! Thank you The indexes are disabled. Actually all the
indexes of all tables are inactive. Since I know for sure we did not
alter indexes to deactivate them. Simply we did not know this feature.
I like to know what else could cause this to happen.
The only thing we have done is dropping foreign key constraints to
speed up the delete of about 4.000.0000 records.
With kind regards,
Olivier Olmer
Oxolutions
--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@t...>
wrote:
> At 09:01 AM 19/06/2003 +0000, you wrote:they
> >We experienced succesful inserts in the database while it is
> >violating the primary key constraint.
> >This appeared using firebird 1.02 with multiple files. Even after
> >backup restore this still is the case.
> >
> >This problem does not appear till we dropped some foreign key
> >constraints by its name.
> >
> >Two questions:
> >How do I solve the problem of deleting the double records (since
> >are exactly the same?advice
>
> See Alan's post.
>
> >Which version of firebird is reliable on testing the primary key
> >constraint.
>
> All. I've only ever seen this occur where the programmer had taken
> to set indexes inactive while doing bulk inserts, so he took itliterally
> and disabled them all, including the unique index that systemcreated to
> enforce the PK!!
>
> heLen