Commit 78a0fe79 authored by Brandon Nesterenko's avatar Brandon Nesterenko

MDEV-25222: mysqlbinlog --base64-output wrong option default drops BINLOG from output

The --help comment for the --base64-output option in
mysqlbinlog was hard to decipher. This quick patch aims
to refine it.

Reviewed By:
==========
Andrei Elkin: <andrei.elkin@mariadb.com>
parent 27141581
...@@ -1516,14 +1516,16 @@ static struct my_option my_options[] = ...@@ -1516,14 +1516,16 @@ static struct my_option my_options[] =
{"base64-output", OPT_BASE64_OUTPUT_MODE, {"base64-output", OPT_BASE64_OUTPUT_MODE,
/* 'unspec' is not mentioned because it is just a placeholder. */ /* 'unspec' is not mentioned because it is just a placeholder. */
"Determine when the output statements should be base64-encoded BINLOG " "Determine when the output statements should be base64-encoded BINLOG "
"statements: 'never' doesn't print binlog row events and should not be " "statements: "
"used when directing output to a MariaDB master; " "‘never’ neither prints base64 encodings nor verbose event data, and "
"will exit on error if a row-based event is found. "
"'decode-rows' decodes row events into commented SQL statements if the " "'decode-rows' decodes row events into commented SQL statements if the "
"--verbose option is also given; " "--verbose option is also given. "
"'auto' prints base64 only when necessary (i.e., for row-based events and " "‘auto’ outputs base64 encoded entries for row-based and format "
"format description events); " "description events. "
"If no --base64-output=name option is given at all, the default is " "If no option is given at all, the default is ‘auto', and is "
"'auto'.", "consequently the only option that should be used when row-format events "
"are processed for re-execution.",
&opt_base64_output_mode_str, &opt_base64_output_mode_str, &opt_base64_output_mode_str, &opt_base64_output_mode_str,
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
/* /*
......
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