PutDeleteStatement returns a DeleteStatement to the pool
(stmt *DeleteStatement)
| 612 | |
| 613 | // PutDeleteStatement returns a DeleteStatement to the pool |
| 614 | func PutDeleteStatement(stmt *DeleteStatement) { |
| 615 | if stmt == nil { |
| 616 | return |
| 617 | } |
| 618 | |
| 619 | // Clean up expressions |
| 620 | PutExpression(stmt.Where) |
| 621 | |
| 622 | // Reset fields |
| 623 | stmt.Where = nil |
| 624 | stmt.TableName = "" |
| 625 | |
| 626 | // Return to pool |
| 627 | deleteStmtPool.Put(stmt) |
| 628 | } |
| 629 | |
| 630 | // GetUpdateExpression gets an UpdateExpression from the pool |
| 631 | func GetUpdateExpression() *UpdateExpression { |