8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 02:03:04 +01:00

Prevent any modifications of the OLD context in triggers.

This commit is contained in:
dimitr 2004-08-02 19:53:45 +00:00
parent be8642e1f2
commit 321ac4792f

View File

@ -3640,6 +3640,15 @@ static jrd_nod* pass1(thread_db* tdbb,
{
ERR_post(isc_read_only_field, 0);
}
else if (sub->nod_type == nod_field)
{
USHORT stream = (USHORT)(IPTR) sub->nod_arg[e_fld_stream];
tail = &csb->csb_rpt[stream];
if (tail->csb_flags & csb_trigger && stream == 0) // OLD context
{
ERR_post(isc_read_only_field, 0);
}
}
}
return node;