Skip to content

Commit

Permalink
Fixed CORE-4073 - Constant columns getting empty value with subselect…
Browse files Browse the repository at this point in the history
… from procedure.
  • Loading branch information
asfernandes committed Apr 3, 2013
1 parent 1e3c643 commit a74f8f1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/jrd/recsrc/ProcedureScan.cpp
Expand Up @@ -221,7 +221,10 @@ bool ProcedureScan::getRecord(thread_db* tdbb) const
fb_assert(impure->irsb_ext_resultset);

if (!impure->irsb_ext_resultset->fetch(tdbb))
{
rpb->rpb_number.setValid(false);
return false;
}
}
else
{
Expand All @@ -243,6 +246,7 @@ bool ProcedureScan::getRecord(thread_db* tdbb) const
if (!eos)
{
trace.fetch(true, res_successful);
rpb->rpb_number.setValid(false);
return false;
}
}
Expand All @@ -262,6 +266,7 @@ bool ProcedureScan::getRecord(thread_db* tdbb) const
om, &rec_format->fmt_desc[i], i, record);
}

rpb->rpb_number.setValid(true);
return true;
}

Expand Down

0 comments on commit a74f8f1

Please sign in to comment.