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

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


The following commit(s) were added to refs/heads/PG13 by this push:
     new 29a352f5 Remove duplicate check (#1740) (#1834)
29a352f5 is described below

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

    Remove duplicate check (#1740) (#1834)
    
    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 e16cf222..f4bcbc91 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