MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / HasDefaultExpr

Method HasDefaultExpr

pkg/sql/sem/tree/create.go:728–730  ·  view source on GitHub ↗

HasDefaultExpr returns if the ColumnTableDef has a default expression.

()

Source from the content-addressed store, hash-verified

726
727// HasDefaultExpr returns if the ColumnTableDef has a default expression.
728func (node *ColumnTableDef) HasDefaultExpr() bool {
729 return node.DefaultExpr.Expr != nil
730}
731
732// HasOnUpdateExpr returns if the ColumnTableDef has an ON UPDATE expression.
733func (node *ColumnTableDef) HasOnUpdateExpr() bool {

Callers 3

docRowMethod · 0.95
NewColumnTableDefFunction · 0.95
FormatMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected