Subject Re: [Firebird-Architect] rfc: TRUNCATE TABLE
Author Vlad Khorsun
> 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?

If we will not dance with undo log (i suppose we will not do it) then we must
disable DML on truncated table.

>> 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.

Then we must do something to prevent such access ;)

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

We want to support not *wrong* metadata handling but something else,
i guess ;)

Regards,
Vlad