Update --set-vars and ->prop() in all tools.

This commit is contained in:
Daniel Nichter
2013-03-01 18:53:28 -07:00
parent a8f52fd532
commit 4dacb9805c
21 changed files with 315 additions and 85 deletions

View File

@@ -4984,7 +4984,7 @@ sub main {
$o->get_opts();
my $dp = $o->DSNParser();
$dp->prop('set-vars', $o->get('set-vars'));
$dp->prop('set-vars', $o->set_vars());
if ( !$o->get('help') ) {
if ( @ARGV < 1 ) {
@@ -5325,10 +5325,21 @@ report width so values are not truncated beyond readability.
=item --set-vars
type: string; default: wait_timeout=10000
type: Array
Set these MySQL variables. Immediately after connecting to MySQL, this string
will be appended to SET and executed.
Set the MySQL variables in this comma-separated list of C<variable=value> pairs.
By default, the tool sets:
=for comment ignore-pt-internal-value
MAGIC_set_vars
wait_timeout=10000
Variables specified on the command line override these defaults. For
example, specifying C<--set-vars wait_timeout=500> overrides the defaultvalue of C<10000>.
The tool prints a warning and continues if a variable cannot be set.
=item --socket