Merged fix-903229-pt-mysql-summary-case-insensitivity-for-engines

This commit is contained in:
Brian Fraser fraserb@gmail.com
2012-10-12 17:38:12 -03:00
5 changed files with 1149 additions and 2 deletions

View File

@@ -1541,7 +1541,7 @@ format_overall_db_stats () {
dbs[0] = db; dbs[0] = db;
} }
engine=substr($2, index($2, "=") + 1); engine=substr($2, index($2, "=") + 1);
if ( engine_seen[engine]++ == 0 ) { if ( engine_seen[tolower(engine)]++ == 0 ) {
engines[num_engines] = engine; engines[num_engines] = engine;
num_engines++; num_engines++;
} }

View File

@@ -621,7 +621,7 @@ format_overall_db_stats () {
dbs[0] = db; dbs[0] = db;
} }
engine=substr($2, index($2, "=") + 1); engine=substr($2, index($2, "=") + 1);
if ( engine_seen[engine]++ == 0 ) { if ( engine_seen[tolower(engine)]++ == 0 ) {
engines[num_engines] = engine; engines[num_engines] = engine;
num_engines++; num_engines++;
} }

View File

@@ -687,6 +687,17 @@ EOF
test_format_innodb_filters test_format_innodb_filters
# ###########################################################################
# format_overall_db_stats
# ###########################################################################
format_overall_db_stats "$samples/mysqldump-001.txt" > "$PT_TMPDIR/got"
no_diff \
"$PT_TMPDIR/got" \
"$samples/expected_output_format_db_stats.txt" \
"Bug 903229: Format overall DB stats should be case-insensitive for engines"
# ########################################################################### # ###########################################################################
# report_mysql_summary # report_mysql_summary
# ########################################################################### # ###########################################################################

View File

@@ -0,0 +1,30 @@
Database Tables Views SPs Trigs Funcs FKs Partn
mysql 21
percona_test 2
sakila 16 7 3 6 3 22
Database MyISAM InnoDB
mysql 20
percona_test 2
sakila 8 15
Database BTREE FULLTEXT
mysql 29
percona_test 2
sakila 63 1
c t s e l d i t s t b v b y d m
h i e n o a n i m e i a l e e e
a m t u n t t n a x g r o a c d
r e m g e y l t i c b r i i
s b t i l n h m u
t l i n i t a a m
a o m t n r l i
m b e t n
p t
Database === === === === === === === === === === === === === === === ===
mysql 58 7 6 77 5 4 19 2 3 2 8 1 4
percona_test 2 2
sakila 1 15 1 3 4 2 19 26 4 45 1 1 7 2

File diff suppressed because it is too large Load Diff