Fix typo in error message

Author: Ayush Tiwari <ayushtiwari.slg01@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/CAJTYsWXFy1j_T82%2BM_S9kFxU414tQYnZQD-b82%3DoL_LbG_5fPQ%40mail.gmail.com
This commit is contained in:
Peter Eisentraut 2026-05-07 10:36:59 +02:00
parent 6827de95ee
commit 5778fb3eaf
2 changed files with 3 additions and 3 deletions

View file

@ -1266,7 +1266,7 @@ check_element_label_properties(Oid ellabeloid)
if (diff1 || diff2)
ereport(ERROR,
errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
errmsg("mismatching properties names in definition of label \"%s\"", get_propgraph_label_name(labelid)));
errmsg("mismatching property names in definition of label \"%s\"", get_propgraph_label_name(labelid)));
}
/*

View file

@ -210,11 +210,11 @@ CREATE PROPERTY GRAPH gx
t1 KEY (a) LABEL l1 PROPERTIES (a, b),
t2 KEY (i) LABEL l1 PROPERTIES (i AS a, j AS j) -- mismatching property names on label
);
ERROR: mismatching properties names in definition of label "l1"
ERROR: mismatching property names in definition of label "l1"
ALTER PROPERTY GRAPH g4 ALTER VERTEX TABLE t1 ADD LABEL t3l1 PROPERTIES (a AS x, b AS yy, b AS zz); -- mismatching number of properties on label
ERROR: mismatching number of properties in definition of label "t3l1"
ALTER PROPERTY GRAPH g4 ALTER VERTEX TABLE t1 ADD LABEL t3l1 PROPERTIES (a AS x, b AS zz); -- mismatching property names on label
ERROR: mismatching properties names in definition of label "t3l1"
ERROR: mismatching property names in definition of label "t3l1"
ALTER PROPERTY GRAPH g4 ALTER VERTEX TABLE t1 ADD LABEL t3l1 PROPERTIES (a AS x); -- mismatching number of properties on label
ERROR: mismatching number of properties in definition of label "t3l1"
ALTER PROPERTY GRAPH g1 OWNER TO regress_graph_user1;