PutAlterStatement returns an AlterStatement to the pool. It zeroes all fields; the Operation interface value is cleared but its internal allocations are not recursively pooled (they use custom types).
(stmt *AlterStatement)
| 1800 | // It zeroes all fields; the Operation interface value is cleared but |
| 1801 | // its internal allocations are not recursively pooled (they use custom types). |
| 1802 | func PutAlterStatement(stmt *AlterStatement) { |
| 1803 | if stmt == nil { |
| 1804 | return |
| 1805 | } |
| 1806 | |
| 1807 | stmt.Type = 0 |
| 1808 | stmt.Name = "" |
| 1809 | stmt.Operation = nil |
| 1810 | |
| 1811 | alterStmtPool.Put(stmt) |
| 1812 | } |
| 1813 | |
| 1814 | // NewCreateSequenceStatement retrieves a CreateSequenceStatement from the pool. |
| 1815 | func NewCreateSequenceStatement() *CreateSequenceStatement { |