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

Removed one of the Nickolay's protections in order to be able to restore databases containing views with check option.

This commit is contained in:
dimitr 2006-05-23 07:51:38 +00:00
parent 2b623fd73b
commit ef5ef3d14e

View File

@ -1126,8 +1126,14 @@ static jrd_nod* par_field(thread_db* tdbb, CompilerScratch* csb, SSHORT blr_oper
const SSHORT context = (unsigned int) BLR_BYTE;
if (context >= csb->csb_rpt.getCount() ||
if (context >= csb->csb_rpt.getCount())/* ||
!(csb->csb_rpt[context].csb_flags & csb_used) )
dimitr: commented out to support system triggers implementing
WITH CHECK OPTION. They reference the relation stream (#2)
directly, without a DSQL context. It breaks the layering,
but we must support legacy BLR.
*/
{
error(csb, isc_ctxnotdef, 0);
}