Format formats the node.
(buf *nodeBuffer)
| 157 | |
| 158 | // Format formats the node. |
| 159 | func (node *DistinctClause) Format(buf *nodeBuffer) { |
| 160 | if node == nil { |
| 161 | return |
| 162 | } |
| 163 | if len(node.On) > 0 { |
| 164 | buf.Printf("distinct on (%v) ", node.On) |
| 165 | } else { |
| 166 | buf.Printf("distinct ") |
| 167 | } |
| 168 | } |
| 169 | |
| 170 | // Select.Hints |
| 171 | const ( |