From a9544be6759ad7d9316a840b8f108850d27ec207 Mon Sep 17 00:00:00 2001 From: Annie Pompa Date: Thu, 12 Sep 2024 15:36:21 -0400 Subject: [PATCH] sql: update help doc for CREATE FUNCTION, ALTER FUNCTION This updates the help documentation to reflect the recent SECURITY DEFINER changes. Epic: CRDB-37477 Release note: None --- pkg/sql/parser/sql.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/sql/parser/sql.y b/pkg/sql/parser/sql.y index f0b659e8005a..bc40952b31be 100644 --- a/pkg/sql/parser/sql.y +++ b/pkg/sql/parser/sql.y @@ -2080,6 +2080,7 @@ alter_database_stmt: // CALLED ON NULL INPUT | RETURNS NULL ON NULL INPUT | STRICT // IMMUTABLE | STABLE | VOLATILE // [ NOT ] LEAKPROOF +// [ EXTERNAL ] SECURITY { INVOKER | DEFINER } // %SeeAlso: WEBDOCS/alter-function.html alter_func_stmt: alter_func_options_stmt @@ -4872,7 +4873,7 @@ create_extension_stmt: // | [ NOT ] LEAKPROOF // | { CALLED ON NULL INPUT | RETURNS NULL ON NULL INPUT | STRICT } // | AS 'definition' -// | { [ EXTERNAL ] SECURITY DEFINER } +// | { [ EXTERNAL ] SECURITY { INVOKER | DEFINER } } // } ... // %SeeAlso: WEBDOCS/create-function.html create_func_stmt: