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

Function PutBinaryExpression

pkg/sql/ast/pool.go:740–750  ·  view source on GitHub ↗

PutBinaryExpression returns a BinaryExpression to the pool

(expr *BinaryExpression)

Source from the content-addressed store, hash-verified

738
739// PutBinaryExpression returns a BinaryExpression to the pool
740func PutBinaryExpression(expr *BinaryExpression) {
741 if expr == nil {
742 return
743 }
744 PutExpression(expr.Left)
745 PutExpression(expr.Right)
746 expr.Left = nil
747 expr.Right = nil
748 expr.Operator = ""
749 binaryExprPool.Put(expr)
750}
751
752// GetExpressionSlice gets a slice of Expression from the pool
753func GetExpressionSlice() *[]Expression {

Calls 2

PutExpressionFunction · 0.85
PutMethod · 0.80