postgres.git / summary / log / commit / refs
commit 3579a94d6acd9374fbc3b45d0be593331ffd414d
Author: Robert Haas <rhaas@postgresql.org>
Date: Tue Oct 26 18:54:31 2010 +0000
First released in: 9.1.0
Fix dumb typo in SECURITY LABEL error message.
Report by Peter Eisentraut.
src/backend/commands/seclabel.c | 2 +-
src/test/regress/output/security_label.source | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/seclabel.c b/src/backend/commands/seclabel.c
index 417ad88d557..762bbae530a 100644
--- a/src/backend/commands/seclabel.c
+++ b/src/backend/commands/seclabel.c
@@ -62,7 +62,7 @@ ExecSecLabelStmt(SecLabelStmt *stmt)
if (label_provider_list == NIL)
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
- errmsg("security label providers have been loaded")));
+ errmsg("no security label providers have been loaded")));
if (lnext(list_head(label_provider_list)) != NULL)
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
diff --git a/src/test/regress/output/security_label.source b/src/test/regress/output/security_label.source
index da8f49d9dc9..4bc803d694f 100644
--- a/src/test/regress/output/security_label.source
+++ b/src/test/regress/output/security_label.source
@@ -22,13 +22,13 @@ RESET client_min_messages;
-- Test of SECURITY LABEL statement without a plugin
--
SECURITY LABEL ON TABLE seclabel_tbl1 IS 'classified'; -- fail
-ERROR: security label providers have been loaded
+ERROR: no security label providers have been loaded
SECURITY LABEL FOR 'dummy' ON TABLE seclabel_tbl1 IS 'classified'; -- fail
ERROR: security label provider "dummy" is not loaded
SECURITY LABEL ON TABLE seclabel_tbl1 IS '...invalid label...'; -- fail
-ERROR: security label providers have been loaded
+ERROR: no security label providers have been loaded
SECURITY LABEL ON TABLE seclabel_tbl3 IS 'unclassified'; -- fail
-ERROR: security label providers have been loaded
+ERROR: no security label providers have been loaded
-- Load dummy external security provider
LOAD '@abs_builddir@/dummy_seclabel@DLSUFFIX@';
--
[parent: 0c6293dd0361]