Skip to content

Commit

Permalink
Merge #107628
Browse files Browse the repository at this point in the history
107628: sql: delete unused NewUndefinedFunctionError function r=chengxiong-ruan a=chengxiong-ruan

Epic: None

Release note: None

Co-authored-by: Chengxiong Ruan <[email protected]>
  • Loading branch information
craig[bot] and chengxiong-ruan committed Jul 27, 2023
2 parents 400105c + 211376e commit 3bbf620
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/sql/sqlerrors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,6 @@ func NewUndefinedTypeError(name tree.NodeFormatter) error {
return pgerror.Newf(pgcode.UndefinedObject, "type %q does not exist", tree.ErrString(name))
}

// NewUndefinedFunctionError creates an error that represents a missing user
// defined function.
func NewUndefinedFunctionError(fn string) error {
return pgerror.Newf(pgcode.UndefinedFunction, "function %q does not exist", fn)
}

// NewUndefinedRelationError creates an error that represents a missing database table or view.
func NewUndefinedRelationError(name tree.NodeFormatter) error {
return pgerror.Newf(pgcode.UndefinedTable,
Expand Down

0 comments on commit 3bbf620

Please sign in to comment.