Skip to content

Commit f57a845

Browse files
mayprasadahlerlend
authored andcommitted
WL#6616 : WL#6616 PERFORMANCE_SCHEMA, INDEXES
Fixed tests failures.
1 parent a34fafe commit f57a845

File tree

4 files changed

+21
-20
lines changed

4 files changed

+21
-20
lines changed

mysql-test/suite/perfschema/r/idx_fs_by_instance.result

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,106 +9,106 @@ into @ename;
99
Testing index for columns OBJECT_INSTANCE_BEGIN
1010
====================================================================
1111
############ Explain for Query ####################################
12-
explain select COUNT_STAR
12+
explain select COUNT(*)
1313
from performance_schema.file_summary_by_instance
1414
where OBJECT_INSTANCE_BEGIN = "impossible";
1515
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1616
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL # NULL no matching row in const table
1717
############ Explain for Query ####################################
18-
explain select COUNT_STAR
18+
explain select COUNT(*)
1919
from performance_schema.file_summary_by_instance
2020
where OBJECT_INSTANCE_BEGIN > "impossible";
2121
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
2222
1 SIMPLE file_summary_by_instance NULL ALL PRIMARY NULL NULL NULL # 33.33 Using where
2323
############ Explain for Query ####################################
24-
explain select COUNT_STAR
24+
explain select COUNT(*)
2525
from performance_schema.file_summary_by_instance
2626
where OBJECT_INSTANCE_BEGIN < "impossible";
2727
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
2828
1 SIMPLE file_summary_by_instance NULL ALL PRIMARY NULL NULL NULL # 33.33 Using where
2929
############ Explain for Query ####################################
30-
explain select COUNT_STAR
30+
explain select COUNT(*)
3131
from performance_schema.file_summary_by_instance
3232
where OBJECT_INSTANCE_BEGIN = @oib;
3333
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
3434
1 SIMPLE file_summary_by_instance NULL const PRIMARY PRIMARY 8 const # 100.00 NULL
3535
############# Explain End #########################################
3636
flush status;
37-
select COUNT_STAR
37+
select COUNT(*)
3838
from performance_schema.file_summary_by_instance
3939
where OBJECT_INSTANCE_BEGIN = @oib;
40-
COUNT_STAR
40+
COUNT(*)
4141
#
4242
OK: handler_read_key incremented
4343

4444
====================================================================
4545
Testing index for columns FILE_NAME
4646
====================================================================
4747
############ Explain for Query ####################################
48-
explain select COUNT_STAR
48+
explain select COUNT(*)
4949
from performance_schema.file_summary_by_instance
5050
where FILE_NAME = "impossible";
5151
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
5252
1 SIMPLE file_summary_by_instance NULL ref FILE_NAME FILE_NAME 1538 const # 100.00 NULL
5353
############ Explain for Query ####################################
54-
explain select COUNT_STAR
54+
explain select COUNT(*)
5555
from performance_schema.file_summary_by_instance
5656
where FILE_NAME > "impossible";
5757
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
5858
1 SIMPLE file_summary_by_instance NULL ALL FILE_NAME NULL NULL NULL # 33.33 Using where
5959
############ Explain for Query ####################################
60-
explain select COUNT_STAR
60+
explain select COUNT(*)
6161
from performance_schema.file_summary_by_instance
6262
where FILE_NAME < "impossible";
6363
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
6464
1 SIMPLE file_summary_by_instance NULL ALL FILE_NAME NULL NULL NULL # 33.33 Using where
6565
############ Explain for Query ####################################
66-
explain select COUNT_STAR
66+
explain select COUNT(*)
6767
from performance_schema.file_summary_by_instance
6868
where FILE_NAME = @fname;
6969
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
7070
1 SIMPLE file_summary_by_instance NULL ref FILE_NAME FILE_NAME 1538 const # 100.00 NULL
7171
############# Explain End #########################################
7272
flush status;
73-
select COUNT_STAR
73+
select COUNT(*)
7474
from performance_schema.file_summary_by_instance
7575
where FILE_NAME = @fname;
76-
COUNT_STAR
76+
COUNT(*)
7777
#
7878
OK: handler_read_key incremented
7979

8080
====================================================================
8181
Testing index for columns EVENT_NAME
8282
====================================================================
8383
############ Explain for Query ####################################
84-
explain select COUNT_STAR
84+
explain select COUNT(*)
8585
from performance_schema.file_summary_by_instance
8686
where EVENT_NAME = "impossible";
8787
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
8888
1 SIMPLE file_summary_by_instance NULL ref EVENT_NAME EVENT_NAME 386 const # 100.00 NULL
8989
############ Explain for Query ####################################
90-
explain select COUNT_STAR
90+
explain select COUNT(*)
9191
from performance_schema.file_summary_by_instance
9292
where EVENT_NAME > "impossible";
9393
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
9494
1 SIMPLE file_summary_by_instance NULL ALL EVENT_NAME NULL NULL NULL # 33.33 Using where
9595
############ Explain for Query ####################################
96-
explain select COUNT_STAR
96+
explain select COUNT(*)
9797
from performance_schema.file_summary_by_instance
9898
where EVENT_NAME < "impossible";
9999
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
100100
1 SIMPLE file_summary_by_instance NULL ALL EVENT_NAME NULL NULL NULL # 33.33 Using where
101101
############ Explain for Query ####################################
102-
explain select COUNT_STAR
102+
explain select COUNT(*)
103103
from performance_schema.file_summary_by_instance
104104
where EVENT_NAME = @ename;
105105
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
106106
1 SIMPLE file_summary_by_instance NULL ref EVENT_NAME EVENT_NAME 386 const # 100.00 NULL
107107
############# Explain End #########################################
108108
flush status;
109-
select COUNT_STAR
109+
select COUNT(*)
110110
from performance_schema.file_summary_by_instance
111111
where EVENT_NAME = @ename;
112-
COUNT_STAR
112+
COUNT(*)
113113
#
114114
OK: handler_read_key incremented

mysql-test/suite/perfschema/t/idx_esms_by_digest.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
--source include/not_embedded.inc
44
--source include/have_perfschema.inc
5+
--source include/no_protocol.inc
56

67
#setup
78
let $select_column = COUNT_STAR;

mysql-test/suite/perfschema/t/idx_events_transactions_history.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ rollback;
3030
--connection default
3131

3232
--disable_query_log
33-
--eval select EVENT_ID from performance_schema.events_transactions_history where THREAD_ID = $tid and EVENT_NAME= 'transaction' into @eid;
33+
--eval select EVENT_ID from performance_schema.events_transactions_history where THREAD_ID = $tid and EVENT_NAME= 'transaction' limit 1 into @eid;
3434
--eval select $tid into @tid;
3535
--enable_query_log
3636

mysql-test/suite/perfschema/t/idx_fs_by_instance.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
--source include/have_perfschema.inc
55

66
#setup
7-
let $select_column = COUNT_STAR;
7+
let $select_column = COUNT(*);
88
let $table = performance_schema.file_summary_by_instance;
99

1010
select OBJECT_INSTANCE_BEGIN from performance_schema.file_summary_by_instance limit 1

0 commit comments

Comments
 (0)