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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 3 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy