MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / PutDropStatement

Function PutDropStatement

pkg/sql/ast/pool.go:1691–1702  ·  view source on GitHub ↗

PutDropStatement returns a DropStatement to the pool.

(stmt *DropStatement)

Source from the content-addressed store, hash-verified

1689
1690// PutDropStatement returns a DropStatement to the pool.
1691func PutDropStatement(stmt *DropStatement) {
1692 if stmt == nil {
1693 return
1694 }
1695
1696 stmt.ObjectType = ""
1697 stmt.IfExists = false
1698 stmt.Names = stmt.Names[:0]
1699 stmt.CascadeType = ""
1700
1701 dropStmtPool.Put(stmt)
1702}
1703
1704// GetTruncateStatement gets a TruncateStatement from the pool.
1705func GetTruncateStatement() *TruncateStatement {

Callers 3

releaseStatementFunction · 0.85
TestDropStatementPoolFunction · 0.85

Calls 1

PutMethod · 0.80

Tested by 2

TestDropStatementPoolFunction · 0.68