(
self, select_stmt, asfrom, lateral=False, **kw
)
| 4754 | ) |
| 4755 | |
| 4756 | def _display_froms_for_select( |
| 4757 | self, select_stmt, asfrom, lateral=False, **kw |
| 4758 | ): |
| 4759 | # utility method to help external dialects |
| 4760 | # get the correct from list for a select. |
| 4761 | # specifically the oracle dialect needs this feature |
| 4762 | # right now. |
| 4763 | toplevel = not self.stack |
| 4764 | entry = self._default_stack_entry if toplevel else self.stack[-1] |
| 4765 | |
| 4766 | compile_state = select_stmt._compile_state_factory(select_stmt, self) |
| 4767 | |
| 4768 | correlate_froms = entry["correlate_froms"] |
| 4769 | asfrom_froms = entry["asfrom_froms"] |
| 4770 | |
| 4771 | if asfrom and not lateral: |
| 4772 | froms = compile_state._get_display_froms( |
| 4773 | explicit_correlate_froms=correlate_froms.difference( |
| 4774 | asfrom_froms |
| 4775 | ), |
| 4776 | implicit_correlate_froms=(), |
| 4777 | ) |
| 4778 | else: |
| 4779 | froms = compile_state._get_display_froms( |
| 4780 | explicit_correlate_froms=correlate_froms, |
| 4781 | implicit_correlate_froms=asfrom_froms, |
| 4782 | ) |
| 4783 | return froms |
| 4784 | |
| 4785 | translate_select_structure: Any = None |
| 4786 | """if not ``None``, should be a callable which accepts ``(select_stmt, |
no test coverage detected