From 811185fb60c78fb4a30bcf57fb61e93bba852f7e Mon Sep 17 00:00:00 2001 From: Vlad Khorsun Date: Wed, 11 Feb 2026 15:03:26 +0200 Subject: [PATCH] Improvement #8895 : 'invalid request BLR' puts actual error (and procedure where it happened) at the end where it is truncated by ISC API --- src/jrd/Function.epp | 8 ++++---- src/jrd/met.epp | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/jrd/Function.epp b/src/jrd/Function.epp index c9c4e5bca93..70f43b464df 100644 --- a/src/jrd/Function.epp +++ b/src/jrd/Function.epp @@ -470,8 +470,8 @@ Function* Function::loadMetadata(thread_db* tdbb, USHORT id, bool noscan, USHORT { StaticStatusVector temp_status; ex.stuffException(temp_status); - (Arg::Gds(isc_bad_fun_BLR) << Arg::Str(name) - << Arg::StatusVector(temp_status.begin())).raise(); + (Arg::StatusVector(temp_status.begin()) << + Arg::Gds(isc_bad_fun_BLR) << Arg::Str(name)).raise(); } } } @@ -609,8 +609,8 @@ bool Function::reload(thread_db* tdbb) ex.stuffException(temp_status); const string name = this->getName().toString(); - (Arg::Gds(isc_bad_fun_BLR) << Arg::Str(name) - << Arg::StatusVector(temp_status.begin())).raise(); + (Arg::StatusVector(temp_status.begin()) << + Arg::Gds(isc_bad_fun_BLR) << Arg::Str(name)).raise(); } } catch (const Exception&) diff --git a/src/jrd/met.epp b/src/jrd/met.epp index 53cb28213c4..c2f34620dee 100644 --- a/src/jrd/met.epp +++ b/src/jrd/met.epp @@ -3732,8 +3732,8 @@ jrd_prc* MET_procedure(thread_db* tdbb, USHORT id, bool noscan, USHORT flags) { StaticStatusVector temp_status; ex.stuffException(temp_status); - (Arg::Gds(isc_bad_proc_BLR) << Arg::Str(name) - << Arg::StatusVector(temp_status.begin())).raise(); + (Arg::StatusVector(temp_status.begin()) << + Arg::Gds(isc_bad_proc_BLR) << Arg::Str(name)).raise(); } } } @@ -3842,8 +3842,8 @@ bool jrd_prc::reload(thread_db* tdbb) ex.stuffException(temp_status); const string name = this->getName().toString(); - (Arg::Gds(isc_bad_proc_BLR) << Arg::Str(name) - << Arg::StatusVector(temp_status.begin())).raise(); + (Arg::StatusVector(temp_status.begin()) << + Arg::Gds(isc_bad_proc_BLR) << Arg::Str(name)).raise(); } } catch (const Exception&)