GetAlterTableStatement gets an AlterTableStatement from the pool.
()
| 1469 | |
| 1470 | // GetAlterTableStatement gets an AlterTableStatement from the pool. |
| 1471 | func GetAlterTableStatement() *AlterTableStatement { |
| 1472 | stmt := alterTableStmtPool.Get().(*AlterTableStatement) |
| 1473 | stmt.Actions = stmt.Actions[:0] |
| 1474 | return stmt |
| 1475 | } |
| 1476 | |
| 1477 | // PutAlterTableStatement returns an AlterTableStatement to the pool. |
| 1478 | // It recursively releases nested expressions in column definitions and constraints. |