Subject Re: [Firebird-Architect] rfc: TRUNCATE TABLE
Author Adriano dos Santos Fernandes
Dmitry Yemanov escreveu:
> Adriano dos Santos Fernandes wrote:
>
>> Having a AFTER TRUNCATE trigger accessing a truncated table and be able
>> to read/write data to it seems dangerous to me. And that data will be
>> lost later.
>>
>> Perhaps, we should block access to them before the commit?
>>
>
> I suppose this is exactly what Vlad has been offering.
I don't remember to read anything about access on the same transaction.

Anyway, it's currently possible to even access an already dropped table
on the same transaction.

Just side effects of the wrong metadata handling that most of us want to
support. :-)


Adriano