That's the point. Of course DB2 does release the lock when i do
commit/rollback. My question is: why DB2 generates that lock even if
the insert fails?
cheers
Florian
> > When you use +c you are turning off auto-commit so you need to do an
in message news:35381911.0404260205.3921cec@posting.google.com...
> That's the point. Of course DB2 does release the lock when i do
> commit/rollback. My question is: why DB2 generates that lock even if
> the insert fails?
>
> cheers
> Florian
DB2 obtains the lock before it knows whether the insert will fail or be
successful. If DB2 did not obtain the lock beforehand, the lock would be
useless.
florian - 27 Apr 2004 22:41 GMT
> DB2 obtains the lock before it knows whether the insert will fail or be
> successful. If DB2 did not obtain the lock beforehand, the lock would be
> useless.
Ok, you are right, after thinking it over it makes sense and my
question was kind of stupid.
Thank you
Florian