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

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


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

commit d8cb15595b0b237b91ae4da0636d3017e3ef06c9
Author: John Gemignani <[email protected]>
AuthorDate: Fri May 3 15:13:57 2024 -0700

    Remove duplicate check (#1740) (#1831)
    
    This commit removes [a benign] redundant check for label validity
    
    Co-authored-by: jberzy <[email protected]>
---
 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 a3a9768c..80da6b02 100644
--- a/src/backend/commands/label_commands.c
+++ b/src/backend/commands/label_commands.c
@@ -279,12 +279,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