MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / internalOpen

Method internalOpen

src/jrd/recsrc/ExternalTableScan.cpp:48–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void ExternalTableScan::internalOpen(thread_db* tdbb) const
49{
50 Database* const dbb = tdbb->getDatabase();
51 Request* const request = tdbb->getRequest();
52 Impure* const impure = request->getImpure<Impure>(m_impure);
53
54 impure->irsb_flags = irsb_open;
55
56 record_param* const rpb = &request->req_rpb[m_stream];
57 rpb->getWindow(tdbb).win_flags = 0;
58
59 EXT_open(dbb, m_relation->rel_file);
60
61 VIO_record(tdbb, rpb, MET_current(tdbb, m_relation), request->req_pool);
62
63 impure->irsb_position = 0;
64 rpb->rpb_number.setValue(BOF_NUMBER);
65}
66
67void ExternalTableScan::close(thread_db* tdbb) const
68{

Callers

nothing calls this directly

Calls 5

EXT_openFunction · 0.85
VIO_recordFunction · 0.85
getDatabaseMethod · 0.80
getRequestMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected