============================================================ DDL Statement Pool Functions ============================================================ GetCreateTableStatement gets a CreateTableStatement from the pool.
()
| 1374 | |
| 1375 | // GetCreateTableStatement gets a CreateTableStatement from the pool. |
| 1376 | func GetCreateTableStatement() *CreateTableStatement { |
| 1377 | stmt := createTableStmtPool.Get().(*CreateTableStatement) |
| 1378 | stmt.Columns = stmt.Columns[:0] |
| 1379 | stmt.Constraints = stmt.Constraints[:0] |
| 1380 | stmt.Inherits = stmt.Inherits[:0] |
| 1381 | stmt.Options = stmt.Options[:0] |
| 1382 | return stmt |
| 1383 | } |
| 1384 | |
| 1385 | // PutCreateTableStatement returns a CreateTableStatement to the pool. |
| 1386 | // It recursively releases any nested expressions (column defaults, check constraints, etc.). |