aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2010-10-26 14:54:31 -0400
committerRobert Haas <rhaas@postgresql.org>2010-10-26 14:55:18 -0400
commit3579a94d6acd9374fbc3b45d0be593331ffd414d (patch)
tree6947d465340986564f06225c5eeb08a52b67ee85 /src
parent0c6293dd0361a0d3c72c94ced389c509019713a7 (diff)
downloadpostgresql-3579a94d6acd9374fbc3b45d0be593331ffd414d.tar.gz
postgresql-3579a94d6acd9374fbc3b45d0be593331ffd414d.zip
Fix dumb typo in SECURITY LABEL error message.
Report by Peter Eisentraut.
Diffstat (limited to 'src')
-rw-r--r--src/backend/commands/seclabel.c2
-rw-r--r--src/test/regress/output/security_label.source6
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@';
--