mirror of
https://github.com/johnkerl/miller.git
synced 2026-08-02 20:42:52 +00:00
add duplicate-check for user-defined functions, as in the C impl
This commit is contained in:
parent
8065237641
commit
4fed370087
1 changed files with 1 additions and 1 deletions
|
|
@ -257,7 +257,7 @@ func (this *RootNode) BuildAndInstallUDF(astNode *dsl.ASTNode) error {
|
|||
|
||||
functionName := string(astNode.Token.Lit)
|
||||
|
||||
if this.udsManager.ExistsByName(functionName) {
|
||||
if this.udfManager.ExistsByName(functionName) {
|
||||
return errors.New(
|
||||
fmt.Sprintf(
|
||||
"Miller: function named \"%s\" has already been defined.",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue