Subject | Re: Is this a bug or intended behaviour? |
---|---|
Author | Thomas |
Post date | 2010-06-25T20:50:21Z |
--- In firebird-support@yahoogroups.com, "Ann W. Harrison"
So my expectactions were set..
But thanks for the answer.
We'll simply have to split that into single deletes. It's a bit of a pain though, as the real use case has a lot more IDs in it, but that's probably more portable anyway.
> Err, well the assumption that it should work because the deletes areYes, sorry I should have written "single statement" instead of "single transaction". I'm aware of the difference (and I do miss deferred constraints in FB ;) )
> all in the same transaction is wrong. Firebird doesn't do deferred
> constraints (yet).
> I think it should work because all the deletes are
> in the same statement and (in theory) the constraint should be checked
> at the end of the statement, not row-by-row.
> However, most everythingI was only a bit surprised as the other databases, that I'm using got this "right".
> in Firebird is row-by-row, so this is consistent, if not correct.
So my expectactions were set..
> Did you tryNo difference.
> delete from fktest where id in (4, 3, 2, 1);
But thanks for the answer.
We'll simply have to split that into single deletes. It's a bit of a pain though, as the real use case has a lot more IDs in it, but that's probably more portable anyway.