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

Function PutBetweenExpression

pkg/sql/ast/pool.go:1179–1191  ·  view source on GitHub ↗

PutBetweenExpression returns a BetweenExpression to the pool

(be *BetweenExpression)

Source from the content-addressed store, hash-verified

1177
1178// PutBetweenExpression returns a BetweenExpression to the pool
1179func PutBetweenExpression(be *BetweenExpression) {
1180 if be == nil {
1181 return
1182 }
1183 PutExpression(be.Expr)
1184 PutExpression(be.Lower)
1185 PutExpression(be.Upper)
1186 be.Expr = nil
1187 be.Lower = nil
1188 be.Upper = nil
1189 be.Not = false
1190 betweenExprPool.Put(be)
1191}
1192
1193// GetInExpression gets an InExpression from the pool
1194func GetInExpression() *InExpression {

Callers 1

TestPutBetweenExpressionFunction · 0.85

Calls 2

PutExpressionFunction · 0.85
PutMethod · 0.80

Tested by 1

TestPutBetweenExpressionFunction · 0.68