Skip to content

Commit

Permalink
Fixed bug CORE-3680 : EXECUTE BLOCK statement and ISC_DSQL_EXECUTE2()…
Browse files Browse the repository at this point in the history
… problem
  • Loading branch information
hvlad committed Dec 5, 2011
1 parent 8be35cd commit 58ec672
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dsql/dsql.cpp
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 58ec672

Please sign in to comment.