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

Function GetCaseExpression

pkg/sql/ast/pool.go:1150–1154  ·  view source on GitHub ↗

GetCaseExpression gets a CaseExpression from the pool

()

Source from the content-addressed store, hash-verified

1148
1149// GetCaseExpression gets a CaseExpression from the pool
1150func GetCaseExpression() *CaseExpression {
1151 ce := caseExprPool.Get().(*CaseExpression)
1152 ce.WhenClauses = ce.WhenClauses[:0]
1153 return ce
1154}
1155
1156// PutCaseExpression returns a CaseExpression to the pool
1157func PutCaseExpression(ce *CaseExpression) {

Callers 2

TestPutCaseExpressionFunction · 0.85

Calls 1

GetMethod · 0.45

Tested by 2

TestPutCaseExpressionFunction · 0.68