()
| 301 | # that look good. |
| 302 | # Otherwise we emit real SQL. |
| 303 | def _select() -> None: |
| 304 | self.write('SELECT') |
| 305 | if node.distinct_clause: |
| 306 | self.write(' DISTINCT') |
| 307 | if len(node.distinct_clause) > 1 or not isinstance( |
| 308 | node.distinct_clause[0], pgast.Star |
| 309 | ): |
| 310 | self.write(' ON (') |
| 311 | self.visit_list(node.distinct_clause, newlines=False) |
| 312 | self.write(')') |
| 313 | if self.pretty: |
| 314 | self.write('/*', repr(node), '*/') |
| 315 | self.new_lines = 1 |
| 316 | |
| 317 | if node.op: |
| 318 | # Upper level set operation node (UNION/INTERSECT) |
nothing calls this directly
no test coverage detected