]> granicus.if.org Git - postgresql/commitdiff
Fix dumb typo in SECURITY LABEL error message.
authorRobert Haas <rhaas@postgresql.org>
Tue, 26 Oct 2010 18:54:31 +0000 (14:54 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 26 Oct 2010 18:55:18 +0000 (14:55 -0400)
Report by Peter Eisentraut.

src/backend/commands/seclabel.c
src/test/regress/output/security_label.source

index 417ad88d5576d22092365c62b7f947e3bea0d4bd..762bbae530ab343c2a7c5a3b9ba138a1ff5ad8ad 100644 (file)
@@ -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),
index da8f49d9dc937c8c5edc386938159dd4ce0c25c0..4bc803d694fae0f2971f5b5ce0b3e050b949402c 100644 (file)
@@ -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@';
 --