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

Function PutInExpression

pkg/sql/ast/pool.go:1201–1215  ·  view source on GitHub ↗

PutInExpression returns an InExpression to the pool

(ie *InExpression)

Source from the content-addressed store, hash-verified

1199
1200// PutInExpression returns an InExpression to the pool
1201func PutInExpression(ie *InExpression) {
1202 if ie == nil {
1203 return
1204 }
1205 PutExpression(ie.Expr)
1206 ie.Expr = nil
1207 for i := range ie.List {
1208 PutExpression(ie.List[i])
1209 ie.List[i] = nil
1210 }
1211 ie.List = ie.List[:0]
1212 ie.Subquery = nil
1213 ie.Not = false
1214 inExprPool.Put(ie)
1215}
1216
1217// GetTupleExpression gets a TupleExpression from the pool
1218func GetTupleExpression() *TupleExpression {

Callers 1

TestPutInExpressionFunction · 0.85

Calls 2

PutExpressionFunction · 0.85
PutMethod · 0.80

Tested by 1

TestPutInExpressionFunction · 0.68