Skip to content

Commit 4f8fa44

Browse files
committed
help text: fix terminology on stored program vs stored object
The MySQL manual differentiates between "stored program" and "stored object" e.g. in https://dev.mysql.com/doc/refman/8.4/en/stored-objects.html as follows: * Stored programs = procedures, functions, triggers, events * Stored objects = procedures, functions, triggers, events, views This commit adjusts help text to follow these definitions. In Skeema Community Edition this only affects the text for --lint-definer, but in Skeema Premium it also affects --strip-definer. No functionality changes in this commit, just text and comments.
1 parent cbec6b6 commit 4f8fa44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/linter/check_definer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func init() {
1818
RegisterRule(Rule{
1919
CheckerFunc: GenericChecker(definerChecker),
2020
Name: "definer",
21-
Description: "Only allow definer users listed in --allow-definer for stored programs",
21+
Description: "Only allow definer users listed in --allow-definer for stored objects",
2222
DefaultSeverity: SeverityError,
2323
RelatedOption: mybase.StringOption("allow-definer", 0, "%@%", "List of allowed definer users for --lint-definer"),
2424
ConfigFunc: RuleConfigFunc(definerConfiger),
@@ -28,7 +28,7 @@ func init() {
2828
// definerConfig is a custom configuration struct used by definerChecker. The
2929
// configuration of this rule involves custom logic to set up regular
3030
// expressions a single time, which is more efficient than re-computing them
31-
// on each stored program encountered, especially in environments with a large
31+
// on each stored object encountered, especially in environments with a large
3232
// number of them.
3333
type definerConfig struct {
3434
allowedDefinersString string

0 commit comments

Comments
 (0)