GetCreateViewStatement gets a CreateViewStatement from the pool.
()
| 1609 | |
| 1610 | // GetCreateViewStatement gets a CreateViewStatement from the pool. |
| 1611 | func GetCreateViewStatement() *CreateViewStatement { |
| 1612 | stmt := createViewStmtPool.Get().(*CreateViewStatement) |
| 1613 | stmt.Columns = stmt.Columns[:0] |
| 1614 | return stmt |
| 1615 | } |
| 1616 | |
| 1617 | // PutCreateViewStatement returns a CreateViewStatement to the pool. |
| 1618 | // It recursively releases the nested query statement. |