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

Function PutCastExpression

pkg/sql/ast/pool.go:1279–1287  ·  view source on GitHub ↗

PutCastExpression returns a CastExpression to the pool

(ce *CastExpression)

Source from the content-addressed store, hash-verified

1277
1278// PutCastExpression returns a CastExpression to the pool
1279func PutCastExpression(ce *CastExpression) {
1280 if ce == nil {
1281 return
1282 }
1283 PutExpression(ce.Expr)
1284 ce.Expr = nil
1285 ce.Type = ""
1286 castExprPool.Put(ce)
1287}
1288
1289// GetIntervalExpression gets an IntervalExpression from the pool
1290func GetIntervalExpression() *IntervalExpression {

Callers 1

TestPutCastExpressionFunction · 0.85

Calls 2

PutExpressionFunction · 0.85
PutMethod · 0.80

Tested by 1

TestPutCastExpressionFunction · 0.68