This is an automated email from the ASF dual-hosted git repository.

jgemignani pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/age.git


The following commit(s) were added to refs/heads/master by this push:
     new 0eef91db Remove duplicate check (#1740)
0eef91db is described below

commit 0eef91db57babdc9a47d7cc8f4ec514c3008f82a
Author: jberzy <[email protected]>
AuthorDate: Tue Apr 9 12:32:00 2024 -0700

    Remove duplicate check (#1740)
    
    This commit removes [a benign] redundant check for label validity
---
 src/backend/commands/label_commands.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/backend/commands/label_commands.c 
b/src/backend/commands/label_commands.c
index c8ea7738..8542c41c 100644
--- a/src/backend/commands/label_commands.c
+++ b/src/backend/commands/label_commands.c
@@ -265,12 +265,6 @@ void create_label(char *graph_name, char *label_name, char 
label_type,
                         errmsg("label name is invalid")));
     }
 
-    if (!is_valid_label(label_name, label_type))
-    {
-        ereport(ERROR, (errcode(ERRCODE_UNDEFINED_SCHEMA),
-                        errmsg("label name is invalid")));
-    }
-
     cache_data = search_graph_name_cache(graph_name);
     if (!cache_data)
     {

Reply via email to