8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 06:03:02 +01:00

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
This commit is contained in:
hvlad 2005-05-12 17:46:31 +00:00
parent 8e82e480f6
commit 33e495c7ad

View File

@ -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) &&