We've got a blr error other than a syntax error. Handle it.
| 744 | |
| 745 | // We've got a blr error other than a syntax error. Handle it. |
| 746 | static 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. |
| 769 | void PAR_error(CompilerScratch* csb, const Arg::StatusVector& v, bool isSyntaxError) |
no test coverage detected