(
self, select_stmt, asfrom, lateral=False, **kw
)
| 4935 | ) |
| 4936 | |
| 4937 | def _display_froms_for_select( |
| 4938 | self, select_stmt, asfrom, lateral=False, **kw |
| 4939 | ): |
| 4940 | # utility method to help external dialects |
| 4941 | # get the correct from list for a select. |
| 4942 | # specifically the oracle dialect needs this feature |
| 4943 | # right now. |
| 4944 | toplevel = not self.stack |
| 4945 | entry = self._default_stack_entry if toplevel else self.stack[-1] |
| 4946 | |
| 4947 | compile_state = select_stmt._compile_state_factory(select_stmt, self) |
| 4948 | |
| 4949 | correlate_froms = entry["correlate_froms"] |
| 4950 | asfrom_froms = entry["asfrom_froms"] |
| 4951 | |
| 4952 | if asfrom and not lateral: |
| 4953 | froms = compile_state._get_display_froms( |
| 4954 | explicit_correlate_froms=correlate_froms.difference( |
| 4955 | asfrom_froms |
| 4956 | ), |
| 4957 | implicit_correlate_froms=(), |
| 4958 | ) |
| 4959 | else: |
| 4960 | froms = compile_state._get_display_froms( |
| 4961 | explicit_correlate_froms=correlate_froms, |
| 4962 | implicit_correlate_froms=asfrom_froms, |
| 4963 | ) |
| 4964 | return froms |
| 4965 | |
| 4966 | translate_select_structure: Any = None |
| 4967 | """if not ``None``, should be a callable which accepts ``(select_stmt, |
no test coverage detected