MCPcopy Create free account
hub / github.com/dolthub/doltgresql / nodeAlterFunction

Function nodeAlterFunction

server/ast/alter_function.go:24–36  ·  view source on GitHub ↗

nodeAlterFunction handles *tree.AlterFunction nodes.

(ctx *Context, node *tree.AlterFunction)

Source from the content-addressed store, hash-verified

22
23// nodeAlterFunction handles *tree.AlterFunction nodes.
24func nodeAlterFunction(ctx *Context, node *tree.AlterFunction) (vitess.Statement, error) {
25 _, err := validateRoutineOptions(ctx, node.Options)
26 if err != nil {
27 return nil, err
28 }
29
30 // We intentionally don't support OWNER TO since we don't support owning objects
31 if node.Owner != "" && len(node.Options) == 0 {
32 return NewNoOp("OWNER TO is unsupported and ignored"), nil
33 }
34
35 return NotYetSupportedError("ALTER FUNCTION statement is not yet supported")
36}

Callers 1

ConvertFunction · 0.85

Calls 3

validateRoutineOptionsFunction · 0.85
NewNoOpFunction · 0.85
NotYetSupportedErrorFunction · 0.85

Tested by

no test coverage detected