(self, compiler, connection)
| 150 | |
| 151 | class TupleExact(TupleLookupMixin, Exact): |
| 152 | def get_fallback_sql(self, compiler, connection): |
| 153 | if isinstance(self.rhs, Query): |
| 154 | return super(TupleLookupMixin, self).as_sql(compiler, connection) |
| 155 | # Process right-hand-side to trigger sanitization. |
| 156 | self.process_rhs(compiler, connection) |
| 157 | # e.g.: (a, b, c) == (x, y, z) as SQL: |
| 158 | # WHERE a = x AND b = y AND c = z |
| 159 | lookups = [Exact(col, val) for col, val in zip(self.lhs, self.rhs)] |
| 160 | root = WhereNode(lookups, connector=AND) |
| 161 | |
| 162 | return root.as_sql(compiler, connection) |
| 163 | |
| 164 | |
| 165 | class TupleIsNull(TupleLookupMixin, IsNull): |
nothing calls this directly
no test coverage detected