PutCreateViewStatement returns a CreateViewStatement to the pool. It recursively releases the nested query statement.
(stmt *CreateViewStatement)
| 1617 | // PutCreateViewStatement returns a CreateViewStatement to the pool. |
| 1618 | // It recursively releases the nested query statement. |
| 1619 | func PutCreateViewStatement(stmt *CreateViewStatement) { |
| 1620 | if stmt == nil { |
| 1621 | return |
| 1622 | } |
| 1623 | |
| 1624 | // Recursively release the nested SELECT query |
| 1625 | releaseStatement(stmt.Query) |
| 1626 | |
| 1627 | stmt.OrReplace = false |
| 1628 | stmt.Temporary = false |
| 1629 | stmt.IfNotExists = false |
| 1630 | stmt.Name = "" |
| 1631 | stmt.Columns = stmt.Columns[:0] |
| 1632 | stmt.Query = nil |
| 1633 | stmt.WithOption = "" |
| 1634 | |
| 1635 | createViewStmtPool.Put(stmt) |
| 1636 | } |
| 1637 | |
| 1638 | // GetCreateMaterializedViewStatement gets a CreateMaterializedViewStatement from the pool. |
| 1639 | func GetCreateMaterializedViewStatement() *CreateMaterializedViewStatement { |