mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 09:23:03 +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:
parent
8e82e480f6
commit
33e495c7ad
@ -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) &&
|
||||
|
Loading…
Reference in New Issue
Block a user