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

Function PutUpdateExpression

pkg/sql/ast/pool.go:636–651  ·  view source on GitHub ↗

PutUpdateExpression returns an UpdateExpression to the pool

(expr *UpdateExpression)

Source from the content-addressed store, hash-verified

634
635// PutUpdateExpression returns an UpdateExpression to the pool
636func PutUpdateExpression(expr *UpdateExpression) {
637 if expr == nil {
638 return
639 }
640
641 // Clean up expressions
642 PutExpression(expr.Column)
643 PutExpression(expr.Value)
644
645 // Reset fields
646 expr.Column = nil
647 expr.Value = nil
648
649 // Return to pool
650 updateExprPool.Put(expr)
651}
652
653// GetSelectStatement gets a SelectStatement from the pool
654func GetSelectStatement() *SelectStatement {

Callers 1

TestUpdateExpressionPoolFunction · 0.85

Calls 2

PutExpressionFunction · 0.85
PutMethod · 0.80

Tested by 1

TestUpdateExpressionPoolFunction · 0.68