From 4aaa42fe3f731ec87ac1f8a558908bc4ce5325db Mon Sep 17 00:00:00 2001 From: dimitr Date: Wed, 15 Jan 2003 11:40:40 +0000 Subject: [PATCH] New BLR verb for parametrized events. --- src/jrd/blr.h | 10 ++++++++-- src/jrd/blrtable.cpp | 5 +++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/jrd/blr.h b/src/jrd/blr.h index 53d41e4d3f..cd2a8ef830 100644 --- a/src/jrd/blr.h +++ b/src/jrd/blr.h @@ -270,12 +270,13 @@ #define blr_current_timestamp (unsigned char)161 #define blr_current_time (unsigned char)162 -/* FB1 specific BLR */ +/* FB 1.0 specific BLR */ #define blr_current_role (unsigned char)174 #define blr_skip (unsigned char)175 -/* FB2 specific BLR */ +/* FB 1.5 specific BLR */ + #define blr_exec_sql (unsigned char)176 #define blr_internal_info (unsigned char)177 #define blr_nullsfirst (unsigned char)178 @@ -283,7 +284,12 @@ /* This codes are for user-defined savepoints as opposed to the system ones defined earlier */ + #define blr_user_savepoint (unsigned char)180 #define blr_undo_savepoint (unsigned char)181 +/* This codes reuse BLR code space */ + +#define blr_post_arg (unsigned char)163 + #endif /* _JRD_BLR_H_ */ diff --git a/src/jrd/blrtable.cpp b/src/jrd/blrtable.cpp index 929dd90ddb..333888b2c7 100644 --- a/src/jrd/blrtable.cpp +++ b/src/jrd/blrtable.cpp @@ -88,7 +88,8 @@ static CONST VERB verbs[] = { PAIR(nod_send, blr_send, e_send_length, 1, STATEMENT, STATEMENT), PAIR(nod_store, blr_store, e_sto_length, e_sto_length - 1, STATEMENT, STATEMENT), PAIR(nod_store, blr_store2, e_sto_length, e_sto_length - 1, STATEMENT, STATEMENT), - PAIR(nod_post, blr_post, 1, 1, STATEMENT, VALUE), + PAIR(nod_post, blr_post, 2, 1, STATEMENT, VALUE), + PAIR(nod_post, blr_post_arg, 2, 2, STATEMENT, VALUE), PAIR(nod_exec_sql, blr_exec_sql, 1, 1, STATEMENT, VALUE), PAIR(nod_internal_info, blr_internal_info, 1, 1, VALUE, VALUE), PAIR2(nod_add, blr_add, 2, 2, VALUE, VALUE), @@ -220,7 +221,7 @@ static CONST VERB verbs[] = { PAIR(nod_current_date, blr_current_date, e_current_date_length, 0, VALUE, OTHER), PAIR(nod_current_time, blr_current_time, e_current_time_length, 0, VALUE, OTHER), PAIR(nod_current_timestamp, blr_current_timestamp, e_current_timestamp_length, 0, VALUE, OTHER), - PAIR(nod_current_role, blr_current_role, 1, 0, VALUE, VALUE), + PAIR(nod_current_role, blr_current_role, 1, 0, VALUE, VALUE), 0 };