| 730 | } |
| 731 | |
| 732 | RecordSource* LocalTableSourceNode::compile(thread_db* tdbb, Optimizer* opt, bool /*innerSubStream*/) |
| 733 | { |
| 734 | const auto csb = opt->getCompilerScratch(); |
| 735 | |
| 736 | if (tableNumber >= csb->csb_localTables.getCount() || !csb->csb_localTables[tableNumber]) |
| 737 | ERR_post(Arg::Gds(isc_bad_loctab_num) << Arg::Num(tableNumber)); |
| 738 | |
| 739 | auto localTable = csb->csb_localTables[tableNumber]; |
| 740 | |
| 741 | return FB_NEW_POOL(*tdbb->getDefaultPool()) LocalTableStream(csb, stream, localTable); |
| 742 | } |
| 743 | |
| 744 | |
| 745 | //-------------------- |
nothing calls this directly
no test coverage detected