PutDropStatement returns a DropStatement to the pool.
(stmt *DropStatement)
| 1689 | |
| 1690 | // PutDropStatement returns a DropStatement to the pool. |
| 1691 | func PutDropStatement(stmt *DropStatement) { |
| 1692 | if stmt == nil { |
| 1693 | return |
| 1694 | } |
| 1695 | |
| 1696 | stmt.ObjectType = "" |
| 1697 | stmt.IfExists = false |
| 1698 | stmt.Names = stmt.Names[:0] |
| 1699 | stmt.CascadeType = "" |
| 1700 | |
| 1701 | dropStmtPool.Put(stmt) |
| 1702 | } |
| 1703 | |
| 1704 | // GetTruncateStatement gets a TruncateStatement from the pool. |
| 1705 | func GetTruncateStatement() *TruncateStatement { |