(self, order_by, select)
| 538 | return result |
| 539 | |
| 540 | def get_extra_select(self, order_by, select): |
| 541 | extra_select = [] |
| 542 | if self.query.distinct and not self.query.distinct_fields: |
| 543 | select_sql = [t[1] for t in select] |
| 544 | for expr, (sql, params, is_ref) in order_by: |
| 545 | without_ordering = self.ordering_parts.search(sql)[1] |
| 546 | if not is_ref and (without_ordering, params) not in select_sql: |
| 547 | extra_select.append((expr, (without_ordering, params), None)) |
| 548 | return extra_select |
| 549 | |
| 550 | def quote_name(self, name): |
| 551 | """ |
no test coverage detected