mirror of
https://github.com/postgres/postgres.git
synced 2025-04-25 21:42:33 +03:00
Fix dumb typo in SECURITY LABEL error message.
Report by Peter Eisentraut.
This commit is contained in:
parent
0c6293dd03
commit
3579a94d6a
@ -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;
|
|||||||
-- 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@';
|
||||||
--
|
--
|
||||||
|
Loading…
x
Reference in New Issue
Block a user