Commit 3579a94d authored by Robert Haas's avatar Robert Haas

Fix dumb typo in SECURITY LABEL error message.

Report by Peter Eisentraut.
parent 0c6293dd
...@@ -62,7 +62,7 @@ ExecSecLabelStmt(SecLabelStmt *stmt) ...@@ -62,7 +62,7 @@ ExecSecLabelStmt(SecLabelStmt *stmt)
if (label_provider_list == NIL) if (label_provider_list == NIL)
ereport(ERROR, ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE), (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) if (lnext(list_head(label_provider_list)) != NULL)
ereport(ERROR, ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE), (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
......
...@@ -22,13 +22,13 @@ RESET client_min_messages; ...@@ -22,13 +22,13 @@ RESET client_min_messages;
-- Test of SECURITY LABEL statement without a plugin -- Test of SECURITY LABEL statement without a plugin
-- --
SECURITY LABEL ON TABLE seclabel_tbl1 IS 'classified'; -- fail 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 SECURITY LABEL FOR 'dummy' ON TABLE seclabel_tbl1 IS 'classified'; -- fail
ERROR: security label provider "dummy" is not loaded ERROR: security label provider "dummy" is not loaded
SECURITY LABEL ON TABLE seclabel_tbl1 IS '...invalid label...'; -- fail 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 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 dummy external security provider
LOAD '@abs_builddir@/dummy_seclabel@DLSUFFIX@'; LOAD '@abs_builddir@/dummy_seclabel@DLSUFFIX@';
-- --
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment