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

Fixed bug CORE-3680 : EXECUTE BLOCK statement and ISC_DSQL_EXECUTE2() problem

This commit is contained in:
hvlad 2011-12-05 13:52:58 +00:00
parent 8be35cdc53
commit 58ec672c79

View File

@ -261,7 +261,7 @@ void DSQL_execute(thread_db* tdbb,
}
// A select with a non zero output length is a singleton select
const bool singleton = (request->req_type == REQ_SELECT && out_msg_length != 0);
const bool singleton = (reqTypeWithCursor(request->req_type) && out_msg_length != 0);
if (request->req_type != REQ_EMBED_SELECT)
{
@ -1136,7 +1136,7 @@ static void execute_immediate(thread_db* tdbb,
Jrd::ContextPoolHolder context(tdbb, &request->req_pool);
// A select with a non zero output length is a singleton select
const bool singleton = (request->req_type == REQ_SELECT && out_msg_length != 0);
const bool singleton = (reqTypeWithCursor(request->req_type) && out_msg_length != 0);
execute_request(tdbb, request, tra_handle,
in_blr_length, in_blr, in_msg_length, in_msg,