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

Function par_error

src/jrd/par.cpp:746–766  ·  view source on GitHub ↗

We've got a blr error other than a syntax error. Handle it.

Source from the content-addressed store, hash-verified

744
745// We've got a blr error other than a syntax error. Handle it.
746static void par_error(BlrReader& blrReader, const Arg::StatusVector& v, bool isSyntaxError)
747{
748 fb_assert(v.value()[0] == isc_arg_gds);
749
750 // Don't bother to pass tdbb for error handling
751 thread_db* tdbb = JRD_get_thread_data();
752
753 if (isSyntaxError)
754 {
755 blrReader.seekBackward(1);
756 Arg::Gds p(isc_invalid_blr);
757 p << Arg::Num(blrReader.getOffset());
758 p.append(v);
759 p.copyTo(tdbb->tdbb_status_vector);
760 }
761 else
762 v.copyTo(tdbb->tdbb_status_vector);
763
764 // Give up whatever we were doing and return to the user.
765 ERR_punt();
766}
767
768// We've got a blr error other than a syntax error. Handle it.
769void PAR_error(CompilerScratch* csb, const Arg::StatusVector& v, bool isSyntaxError)

Callers 2

PAR_datatypeFunction · 0.85
PAR_errorFunction · 0.85

Calls 8

JRD_get_thread_dataFunction · 0.85
NumClass · 0.85
ERR_puntFunction · 0.85
seekBackwardMethod · 0.80
valueMethod · 0.45
getOffsetMethod · 0.45
appendMethod · 0.45
copyToMethod · 0.45

Tested by

no test coverage detected