mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-10-19 08:56:34 +00:00
allow no-vertical-format option for mysql clients that dont support it
This commit is contained in:
@@ -349,16 +349,18 @@ override query_report => sub {
|
||||
default_db => $default_db,
|
||||
Quoter => $q,
|
||||
);
|
||||
my $mark = $args{no_v_format} ? '' : '\G';
|
||||
|
||||
foreach my $db_tbl ( @table_names ) {
|
||||
my ( $db, $tbl ) = @$db_tbl;
|
||||
my $status
|
||||
= 'SHOW TABLE STATUS'
|
||||
. ($db ? " FROM `$db`" : '')
|
||||
. " LIKE '$tbl'\\G";
|
||||
. " LIKE '$tbl'${mark}";
|
||||
my $create
|
||||
= "SHOW CREATE TABLE "
|
||||
. $q->quote(grep { $_ } @$db_tbl)
|
||||
. "\\G";
|
||||
. ${mark};
|
||||
push @tables, { status => $status, create => $create };
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user