From: Robert Haas Date: Tue, 26 Oct 2010 18:54:31 +0000 (-0400) Subject: Fix dumb typo in SECURITY LABEL error message. X-Git-Tag: REL9_1_ALPHA2~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3579a94d6acd9374fbc3b45d0be593331ffd414d;p=postgresql Fix dumb typo in SECURITY LABEL error message. Report by Peter Eisentraut. --- diff --git a/src/backend/commands/seclabel.c b/src/backend/commands/seclabel.c index 417ad88d55..762bbae530 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 da8f49d9dc..4bc803d694 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@'; --