GetCreateMaterializedViewStatement gets a CreateMaterializedViewStatement from the pool.
()
| 1637 | |
| 1638 | // GetCreateMaterializedViewStatement gets a CreateMaterializedViewStatement from the pool. |
| 1639 | func GetCreateMaterializedViewStatement() *CreateMaterializedViewStatement { |
| 1640 | stmt := createMaterializedViewStmtPool.Get().(*CreateMaterializedViewStatement) |
| 1641 | stmt.Columns = stmt.Columns[:0] |
| 1642 | return stmt |
| 1643 | } |
| 1644 | |
| 1645 | // PutCreateMaterializedViewStatement returns a CreateMaterializedViewStatement to the pool. |
| 1646 | // It recursively releases the nested query statement. |