From 33e495c7ad6babfaac0fabbe186735581ceeed06 Mon Sep 17 00:00:00 2001 From: hvlad Date: Thu, 12 May 2005 17:46:31 +0000 Subject: [PATCH] Fixed unregistered bug - AV in incorrect written EXECUTE BLOCK statement. For example : EXECUTE BLOCK AS BEGIN INSERT INTO DUMMY (ID) VALUES(?); END Thanks to Arno --- src/dsql/make.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dsql/make.cpp b/src/dsql/make.cpp index 8a6c89683e..d6719fe575 100644 --- a/src/dsql/make.cpp +++ b/src/dsql/make.cpp @@ -1738,6 +1738,11 @@ dsql_nod* MAKE_node(NOD_TYPE type, int count) dsql_par* MAKE_parameter(dsql_msg* message, bool sqlda_flag, bool null_flag, USHORT sqlda_index) { + if (!message) { + ERRD_post(isc_sqlerr, isc_arg_number, (SLONG) - 901, + isc_arg_gds, isc_badmsgnum, 0); + } + DEV_BLKCHK(message, dsql_type_msg); if (sqlda_flag && sqlda_index && (sqlda_index <= message->msg_index) &&