Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3579a94

Browse files
committed
Fix dumb typo in SECURITY LABEL error message.
Report by Peter Eisentraut.
1 parent 0c6293d commit 3579a94

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/backend/commands/seclabel.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ ExecSecLabelStmt(SecLabelStmt *stmt)
6262
if (label_provider_list == NIL)
6363
ereport(ERROR,
6464
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
65-
errmsg("security label providers have been loaded")));
65+
errmsg("no security label providers have been loaded")));
6666
if (lnext(list_head(label_provider_list)) != NULL)
6767
ereport(ERROR,
6868
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),

src/test/regress/output/security_label.source

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ RESET client_min_messages;
2222
-- Test of SECURITY LABEL statement without a plugin
2323
--
2424
SECURITY LABEL ON TABLE seclabel_tbl1 IS 'classified'; -- fail
25-
ERROR: security label providers have been loaded
25+
ERROR: no security label providers have been loaded
2626
SECURITY LABEL FOR 'dummy' ON TABLE seclabel_tbl1 IS 'classified'; -- fail
2727
ERROR: security label provider "dummy" is not loaded
2828
SECURITY LABEL ON TABLE seclabel_tbl1 IS '...invalid label...'; -- fail
29-
ERROR: security label providers have been loaded
29+
ERROR: no security label providers have been loaded
3030
SECURITY LABEL ON TABLE seclabel_tbl3 IS 'unclassified'; -- fail
31-
ERROR: security label providers have been loaded
31+
ERROR: no security label providers have been loaded
3232
-- Load dummy external security provider
3333
LOAD '@abs_builddir@/dummy_seclabel@DLSUFFIX@';
3434
--

0 commit comments

Comments
 (0)