Format formats the node.
(buf *nodeBuffer)
| 421 | |
| 422 | // Format formats the node. |
| 423 | func (node *Update) Format(buf *nodeBuffer) { |
| 424 | buf.Printf("update %v%v set %v", node.Comments, node.TableExprs, node.Exprs) |
| 425 | if !node.From.IsEmpty() { |
| 426 | buf.Printf(" from %v", node.From) |
| 427 | } |
| 428 | buf.Printf("%v%v%v", node.Where, node.OrderBy, node.Limit) |
| 429 | } |
| 430 | |
| 431 | // Delete represents a DELETE statement. |
| 432 | // If you add fields here, consider adding them to calls to validateSubquerySamePlan. |