MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / GEN_stuff_context

Function GEN_stuff_context

src/dsql/gen.cpp:650–664  ·  view source on GitHub ↗

Write a context number into the BLR buffer. Check for possible overflow.

Source from the content-addressed store, hash-verified

648
649// Write a context number into the BLR buffer. Check for possible overflow.
650void GEN_stuff_context(DsqlCompilerScratch* dsqlScratch, const dsql_ctx* context)
651{
652 if (context->ctx_context > MAX_UCHAR)
653 ERRD_post(Arg::Gds(isc_too_many_contexts));
654
655 dsqlScratch->appendUChar(context->ctx_context);
656
657 if (context->ctx_flags & CTX_recursive)
658 {
659 if (context->ctx_recursive > MAX_UCHAR)
660 ERRD_post(Arg::Gds(isc_too_many_contexts));
661
662 dsqlScratch->appendUChar(context->ctx_recursive);
663 }
664}
665
666
667// Write a context number into the BLR buffer. Check for possible overflow.

Callers 3

genBlrMethod · 0.85
genBlrMethod · 0.85
genBlrMethod · 0.85

Calls 3

ERRD_postFunction · 0.85
GdsClass · 0.85
appendUCharMethod · 0.80

Tested by

no test coverage detected