(buf *strings.Builder, node ast.Node, fullSQL string)
| 195 | } |
| 196 | |
| 197 | func writeSuffixSelectClause(buf *strings.Builder, node ast.Node, fullSQL string) error { |
| 198 | switch n := node.(type) { |
| 199 | case *ast.UpdateStmt: |
| 200 | return writeUpdateSuffix(buf, n, fullSQL) |
| 201 | case *ast.DeleteStmt: |
| 202 | return writeDeleteSuffix(buf, n, fullSQL) |
| 203 | } |
| 204 | return nil |
| 205 | } |
| 206 | |
| 207 | func writeUpdateSuffix(buf *strings.Builder, n *ast.UpdateStmt, sql string) error { |
| 208 | if n.Relation == nil { |
no test coverage detected