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

Function PutFunctionCall

pkg/sql/ast/pool.go:1133–1147  ·  view source on GitHub ↗

PutFunctionCall returns a FunctionCall to the pool

(fc *FunctionCall)

Source from the content-addressed store, hash-verified

1131
1132// PutFunctionCall returns a FunctionCall to the pool
1133func PutFunctionCall(fc *FunctionCall) {
1134 if fc == nil {
1135 return
1136 }
1137 for i := range fc.Arguments {
1138 PutExpression(fc.Arguments[i])
1139 fc.Arguments[i] = nil
1140 }
1141 fc.Arguments = fc.Arguments[:0]
1142 fc.Name = ""
1143 fc.Over = nil
1144 fc.Distinct = false
1145 fc.Filter = nil
1146 functionCallPool.Put(fc)
1147}
1148
1149// GetCaseExpression gets a CaseExpression from the pool
1150func GetCaseExpression() *CaseExpression {

Callers 1

TestPutFunctionCallFunction · 0.85

Calls 2

PutExpressionFunction · 0.85
PutMethod · 0.80

Tested by 1

TestPutFunctionCallFunction · 0.68