From 4fed370087852c22ffd5d6a02efdb453842d941b Mon Sep 17 00:00:00 2001 From: John Kerl Date: Tue, 24 Nov 2020 14:11:40 -0500 Subject: [PATCH] add duplicate-check for user-defined functions, as in the C impl --- go/src/miller/dsl/cst/udf.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/src/miller/dsl/cst/udf.go b/go/src/miller/dsl/cst/udf.go index e238845b6..ea6c92f7d 100644 --- a/go/src/miller/dsl/cst/udf.go +++ b/go/src/miller/dsl/cst/udf.go @@ -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.",