(self)
| 3070 | ) |
| 3071 | |
| 3072 | def _init_for_join(self): |
| 3073 | self._parent_alias = AliasedClass(self.parent.class_) |
| 3074 | pa_insp = inspect(self._parent_alias) |
| 3075 | pk_cols = [ |
| 3076 | pa_insp._adapt_element(col) for col in self.parent.primary_key |
| 3077 | ] |
| 3078 | if len(pk_cols) > 1: |
| 3079 | in_expr = sql.tuple_(*pk_cols) |
| 3080 | zero_idx = False |
| 3081 | else: |
| 3082 | in_expr = pk_cols[0] |
| 3083 | zero_idx = True |
| 3084 | return self.query_info( |
| 3085 | False, True, in_expr, pk_cols, zero_idx, len(pk_cols), None |
| 3086 | ) |
| 3087 | |
| 3088 | def init_class_attribute(self, mapper): |
| 3089 | self.parent_property._get_strategy( |
no test coverage detected