~tsarev/percona-server/bug721176_2

« back to all changes in this revision

Viewing changes to mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments_disable.result

  • Committer: Oleg Tsarev
  • Date: 2011-09-06 06:23:48 UTC
  • mfrom: (158.1.1 bug840218_5.5)
  • Revision ID: oleg.tsarev@percona.com-20110906062348-82tdsfishbaxgo8v
1) move tests from mysql-test/ to patches
2) remove install_tests script and call of script from Makefile

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
set GLOBAL query_cache_size=1355776;
2
 
drop table if exists t1;
3
 
create table t1 (a int not null);
4
 
insert into t1 values (1),(2),(3);
5
 
flush query cache;
6
 
flush query cache;
7
 
reset query cache;
8
 
flush status;
9
 
flush query cache;
10
 
flush query cache;
11
 
reset query cache;
12
 
flush status;
13
 
/* with comment first */select * from t1;
14
 
a
15
 
1
16
 
2
17
 
3
18
 
-----------------------------------------------------
19
 
/* with comment first */select * from t1
20
 
-----------------------------------------------------
21
 
show status like "Qcache_queries_in_cache";
22
 
Variable_name   Value
23
 
Qcache_queries_in_cache 1
24
 
show status like "Qcache_inserts";
25
 
Variable_name   Value
26
 
Qcache_inserts  1
27
 
show status like "Qcache_hits";
28
 
Variable_name   Value
29
 
Qcache_hits     0
30
 
/* with comment first */select * from t1;
31
 
a
32
 
1
33
 
2
34
 
3
35
 
/* with comment first */select * from t1;
36
 
a
37
 
1
38
 
2
39
 
3
40
 
show status like "Qcache_queries_in_cache";
41
 
Variable_name   Value
42
 
Qcache_queries_in_cache 1
43
 
show status like "Qcache_inserts";
44
 
Variable_name   Value
45
 
Qcache_inserts  1
46
 
show status like "Qcache_hits";
47
 
Variable_name   Value
48
 
Qcache_hits     2
49
 
-----------------------------------------------------
50
 
# with comment first
51
 
select * from t1
52
 
-----------------------------------------------------
53
 
show status like "Qcache_queries_in_cache";
54
 
Variable_name   Value
55
 
Qcache_queries_in_cache 1
56
 
show status like "Qcache_inserts";
57
 
Variable_name   Value
58
 
Qcache_inserts  1
59
 
show status like "Qcache_hits";
60
 
Variable_name   Value
61
 
Qcache_hits     2
62
 
# with comment first
63
 
select * from t1;
64
 
a
65
 
1
66
 
2
67
 
3
68
 
# with comment first
69
 
select * from t1;
70
 
a
71
 
1
72
 
2
73
 
3
74
 
show status like "Qcache_queries_in_cache";
75
 
Variable_name   Value
76
 
Qcache_queries_in_cache 2
77
 
show status like "Qcache_inserts";
78
 
Variable_name   Value
79
 
Qcache_inserts  2
80
 
show status like "Qcache_hits";
81
 
Variable_name   Value
82
 
Qcache_hits     2
83
 
-----------------------------------------------------
84
 
select * from t1
85
 
-----------------------------------------------------
86
 
show status like "Qcache_queries_in_cache";
87
 
Variable_name   Value
88
 
Qcache_queries_in_cache 2
89
 
show status like "Qcache_inserts";
90
 
Variable_name   Value
91
 
Qcache_inserts  2
92
 
show status like "Qcache_hits";
93
 
Variable_name   Value
94
 
Qcache_hits     2
95
 
select * from t1;
96
 
a
97
 
1
98
 
2
99
 
3
100
 
select * from t1;
101
 
a
102
 
1
103
 
2
104
 
3
105
 
show status like "Qcache_queries_in_cache";
106
 
Variable_name   Value
107
 
Qcache_queries_in_cache 3
108
 
show status like "Qcache_inserts";
109
 
Variable_name   Value
110
 
Qcache_inserts  3
111
 
show status like "Qcache_hits";
112
 
Variable_name   Value
113
 
Qcache_hits     2
114
 
-----------------------------------------------------
115
 
/* with comment first and "quote" */select * from t1
116
 
-----------------------------------------------------
117
 
show status like "Qcache_queries_in_cache";
118
 
Variable_name   Value
119
 
Qcache_queries_in_cache 3
120
 
show status like "Qcache_inserts";
121
 
Variable_name   Value
122
 
Qcache_inserts  3
123
 
show status like "Qcache_hits";
124
 
Variable_name   Value
125
 
Qcache_hits     2
126
 
/* with comment first and "quote" */select * from t1;
127
 
a
128
 
1
129
 
2
130
 
3
131
 
/* with comment first and "quote" */select * from t1;
132
 
a
133
 
1
134
 
2
135
 
3
136
 
show status like "Qcache_queries_in_cache";
137
 
Variable_name   Value
138
 
Qcache_queries_in_cache 4
139
 
show status like "Qcache_inserts";
140
 
Variable_name   Value
141
 
Qcache_inserts  4
142
 
show status like "Qcache_hits";
143
 
Variable_name   Value
144
 
Qcache_hits     3
145
 
-----------------------------------------------------
146
 
# with comment first and "quote"
147
 
select * from t1
148
 
-----------------------------------------------------
149
 
show status like "Qcache_queries_in_cache";
150
 
Variable_name   Value
151
 
Qcache_queries_in_cache 4
152
 
show status like "Qcache_inserts";
153
 
Variable_name   Value
154
 
Qcache_inserts  4
155
 
show status like "Qcache_hits";
156
 
Variable_name   Value
157
 
Qcache_hits     3
158
 
# with comment first and "quote"
159
 
select * from t1;
160
 
a
161
 
1
162
 
2
163
 
3
164
 
# with comment first and "quote"
165
 
select * from t1;
166
 
a
167
 
1
168
 
2
169
 
3
170
 
show status like "Qcache_queries_in_cache";
171
 
Variable_name   Value
172
 
Qcache_queries_in_cache 5
173
 
show status like "Qcache_inserts";
174
 
Variable_name   Value
175
 
Qcache_inserts  5
176
 
show status like "Qcache_hits";
177
 
Variable_name   Value
178
 
Qcache_hits     3
179
 
-----------------------------------------------------
180
 
select * from t1
181
 
-----------------------------------------------------
182
 
show status like "Qcache_queries_in_cache";
183
 
Variable_name   Value
184
 
Qcache_queries_in_cache 5
185
 
show status like "Qcache_inserts";
186
 
Variable_name   Value
187
 
Qcache_inserts  5
188
 
show status like "Qcache_hits";
189
 
Variable_name   Value
190
 
Qcache_hits     3
191
 
select * from t1;
192
 
a
193
 
1
194
 
2
195
 
3
196
 
select * from t1;
197
 
a
198
 
1
199
 
2
200
 
3
201
 
show status like "Qcache_queries_in_cache";
202
 
Variable_name   Value
203
 
Qcache_queries_in_cache 6
204
 
show status like "Qcache_inserts";
205
 
Variable_name   Value
206
 
Qcache_inserts  6
207
 
show status like "Qcache_hits";
208
 
Variable_name   Value
209
 
Qcache_hits     3
210
 
-----------------------------------------------------
211
 
/* with comment and whitespaces first */select * from t1
212
 
-----------------------------------------------------
213
 
show status like "Qcache_queries_in_cache";
214
 
Variable_name   Value
215
 
Qcache_queries_in_cache 6
216
 
show status like "Qcache_inserts";
217
 
Variable_name   Value
218
 
Qcache_inserts  6
219
 
show status like "Qcache_hits";
220
 
Variable_name   Value
221
 
Qcache_hits     3
222
 
/* with comment and whitespaces first */select * from t1;
223
 
a
224
 
1
225
 
2
226
 
3
227
 
/* with comment and whitespaces first */select * from t1;
228
 
a
229
 
1
230
 
2
231
 
3
232
 
show status like "Qcache_queries_in_cache";
233
 
Variable_name   Value
234
 
Qcache_queries_in_cache 7
235
 
show status like "Qcache_inserts";
236
 
Variable_name   Value
237
 
Qcache_inserts  7
238
 
show status like "Qcache_hits";
239
 
Variable_name   Value
240
 
Qcache_hits     4
241
 
-----------------------------------------------------
242
 
# with comment and whitespaces first
243
 
select * from t1
244
 
-----------------------------------------------------
245
 
show status like "Qcache_queries_in_cache";
246
 
Variable_name   Value
247
 
Qcache_queries_in_cache 7
248
 
show status like "Qcache_inserts";
249
 
Variable_name   Value
250
 
Qcache_inserts  7
251
 
show status like "Qcache_hits";
252
 
Variable_name   Value
253
 
Qcache_hits     4
254
 
# with comment and whitespaces first
255
 
select * from t1;
256
 
a
257
 
1
258
 
2
259
 
3
260
 
# with comment and whitespaces first
261
 
select * from t1;
262
 
a
263
 
1
264
 
2
265
 
3
266
 
show status like "Qcache_queries_in_cache";
267
 
Variable_name   Value
268
 
Qcache_queries_in_cache 8
269
 
show status like "Qcache_inserts";
270
 
Variable_name   Value
271
 
Qcache_inserts  8
272
 
show status like "Qcache_hits";
273
 
Variable_name   Value
274
 
Qcache_hits     4
275
 
-----------------------------------------------------
276
 
select * from t1
277
 
-----------------------------------------------------
278
 
show status like "Qcache_queries_in_cache";
279
 
Variable_name   Value
280
 
Qcache_queries_in_cache 8
281
 
show status like "Qcache_inserts";
282
 
Variable_name   Value
283
 
Qcache_inserts  8
284
 
show status like "Qcache_hits";
285
 
Variable_name   Value
286
 
Qcache_hits     4
287
 
select * from t1;
288
 
a
289
 
1
290
 
2
291
 
3
292
 
select * from t1;
293
 
a
294
 
1
295
 
2
296
 
3
297
 
show status like "Qcache_queries_in_cache";
298
 
Variable_name   Value
299
 
Qcache_queries_in_cache 9
300
 
show status like "Qcache_inserts";
301
 
Variable_name   Value
302
 
Qcache_inserts  9
303
 
show status like "Qcache_hits";
304
 
Variable_name   Value
305
 
Qcache_hits     4
306
 
-----------------------------------------------------
307
 
select * /* internal comment */ from t1
308
 
-----------------------------------------------------
309
 
show status like "Qcache_queries_in_cache";
310
 
Variable_name   Value
311
 
Qcache_queries_in_cache 9
312
 
show status like "Qcache_inserts";
313
 
Variable_name   Value
314
 
Qcache_inserts  9
315
 
show status like "Qcache_hits";
316
 
Variable_name   Value
317
 
Qcache_hits     4
318
 
select * /* internal comment */ from t1;
319
 
a
320
 
1
321
 
2
322
 
3
323
 
select * /* internal comment */ from t1;
324
 
a
325
 
1
326
 
2
327
 
3
328
 
show status like "Qcache_queries_in_cache";
329
 
Variable_name   Value
330
 
Qcache_queries_in_cache 10
331
 
show status like "Qcache_inserts";
332
 
Variable_name   Value
333
 
Qcache_inserts  10
334
 
show status like "Qcache_hits";
335
 
Variable_name   Value
336
 
Qcache_hits     5
337
 
-----------------------------------------------------
338
 
select */* internal comment */ from t1
339
 
-----------------------------------------------------
340
 
show status like "Qcache_queries_in_cache";
341
 
Variable_name   Value
342
 
Qcache_queries_in_cache 10
343
 
show status like "Qcache_inserts";
344
 
Variable_name   Value
345
 
Qcache_inserts  10
346
 
show status like "Qcache_hits";
347
 
Variable_name   Value
348
 
Qcache_hits     5
349
 
select */* internal comment */ from t1;
350
 
a
351
 
1
352
 
2
353
 
3
354
 
select */* internal comment */ from t1;
355
 
a
356
 
1
357
 
2
358
 
3
359
 
show status like "Qcache_queries_in_cache";
360
 
Variable_name   Value
361
 
Qcache_queries_in_cache 11
362
 
show status like "Qcache_inserts";
363
 
Variable_name   Value
364
 
Qcache_inserts  11
365
 
show status like "Qcache_hits";
366
 
Variable_name   Value
367
 
Qcache_hits     6
368
 
-----------------------------------------------------
369
 
select */* internal comment */from t1
370
 
-----------------------------------------------------
371
 
show status like "Qcache_queries_in_cache";
372
 
Variable_name   Value
373
 
Qcache_queries_in_cache 11
374
 
show status like "Qcache_inserts";
375
 
Variable_name   Value
376
 
Qcache_inserts  11
377
 
show status like "Qcache_hits";
378
 
Variable_name   Value
379
 
Qcache_hits     6
380
 
select */* internal comment */from t1;
381
 
a
382
 
1
383
 
2
384
 
3
385
 
select */* internal comment */from t1;
386
 
a
387
 
1
388
 
2
389
 
3
390
 
show status like "Qcache_queries_in_cache";
391
 
Variable_name   Value
392
 
Qcache_queries_in_cache 12
393
 
show status like "Qcache_inserts";
394
 
Variable_name   Value
395
 
Qcache_inserts  12
396
 
show status like "Qcache_hits";
397
 
Variable_name   Value
398
 
Qcache_hits     7
399
 
-----------------------------------------------------
400
 
select * /* internal comment with "quote" */ from t1
401
 
-----------------------------------------------------
402
 
show status like "Qcache_queries_in_cache";
403
 
Variable_name   Value
404
 
Qcache_queries_in_cache 12
405
 
show status like "Qcache_inserts";
406
 
Variable_name   Value
407
 
Qcache_inserts  12
408
 
show status like "Qcache_hits";
409
 
Variable_name   Value
410
 
Qcache_hits     7
411
 
select * /* internal comment with "quote" */ from t1;
412
 
a
413
 
1
414
 
2
415
 
3
416
 
select * /* internal comment with "quote" */ from t1;
417
 
a
418
 
1
419
 
2
420
 
3
421
 
show status like "Qcache_queries_in_cache";
422
 
Variable_name   Value
423
 
Qcache_queries_in_cache 13
424
 
show status like "Qcache_inserts";
425
 
Variable_name   Value
426
 
Qcache_inserts  13
427
 
show status like "Qcache_hits";
428
 
Variable_name   Value
429
 
Qcache_hits     8
430
 
-----------------------------------------------------
431
 
select */* internal comment with "quote" */ from t1
432
 
-----------------------------------------------------
433
 
show status like "Qcache_queries_in_cache";
434
 
Variable_name   Value
435
 
Qcache_queries_in_cache 13
436
 
show status like "Qcache_inserts";
437
 
Variable_name   Value
438
 
Qcache_inserts  13
439
 
show status like "Qcache_hits";
440
 
Variable_name   Value
441
 
Qcache_hits     8
442
 
select */* internal comment with "quote" */ from t1;
443
 
a
444
 
1
445
 
2
446
 
3
447
 
select */* internal comment with "quote" */ from t1;
448
 
a
449
 
1
450
 
2
451
 
3
452
 
show status like "Qcache_queries_in_cache";
453
 
Variable_name   Value
454
 
Qcache_queries_in_cache 14
455
 
show status like "Qcache_inserts";
456
 
Variable_name   Value
457
 
Qcache_inserts  14
458
 
show status like "Qcache_hits";
459
 
Variable_name   Value
460
 
Qcache_hits     9
461
 
-----------------------------------------------------
462
 
select */* internal comment with "quote" */from t1
463
 
-----------------------------------------------------
464
 
show status like "Qcache_queries_in_cache";
465
 
Variable_name   Value
466
 
Qcache_queries_in_cache 14
467
 
show status like "Qcache_inserts";
468
 
Variable_name   Value
469
 
Qcache_inserts  14
470
 
show status like "Qcache_hits";
471
 
Variable_name   Value
472
 
Qcache_hits     9
473
 
select */* internal comment with "quote" */from t1;
474
 
a
475
 
1
476
 
2
477
 
3
478
 
select */* internal comment with "quote" */from t1;
479
 
a
480
 
1
481
 
2
482
 
3
483
 
show status like "Qcache_queries_in_cache";
484
 
Variable_name   Value
485
 
Qcache_queries_in_cache 15
486
 
show status like "Qcache_inserts";
487
 
Variable_name   Value
488
 
Qcache_inserts  15
489
 
show status like "Qcache_hits";
490
 
Variable_name   Value
491
 
Qcache_hits     10
492
 
-----------------------------------------------------
493
 
select * from t1
494
 
 
495
 
-----------------------------------------------------
496
 
show status like "Qcache_queries_in_cache";
497
 
Variable_name   Value
498
 
Qcache_queries_in_cache 15
499
 
show status like "Qcache_inserts";
500
 
Variable_name   Value
501
 
Qcache_inserts  15
502
 
show status like "Qcache_hits";
503
 
Variable_name   Value
504
 
Qcache_hits     10
505
 
select * from t1
506
 
;
507
 
a
508
 
1
509
 
2
510
 
3
511
 
select * from t1
512
 
;
513
 
a
514
 
1
515
 
2
516
 
3
517
 
show status like "Qcache_queries_in_cache";
518
 
Variable_name   Value
519
 
Qcache_queries_in_cache 16
520
 
show status like "Qcache_inserts";
521
 
Variable_name   Value
522
 
Qcache_inserts  16
523
 
show status like "Qcache_hits";
524
 
Variable_name   Value
525
 
Qcache_hits     11
526
 
-----------------------------------------------------
527
 
select * from t1 
528
 
-----------------------------------------------------
529
 
show status like "Qcache_queries_in_cache";
530
 
Variable_name   Value
531
 
Qcache_queries_in_cache 16
532
 
show status like "Qcache_inserts";
533
 
Variable_name   Value
534
 
Qcache_inserts  16
535
 
show status like "Qcache_hits";
536
 
Variable_name   Value
537
 
Qcache_hits     11
538
 
select * from t1 ;
539
 
a
540
 
1
541
 
2
542
 
3
543
 
select * from t1 ;
544
 
a
545
 
1
546
 
2
547
 
3
548
 
show status like "Qcache_queries_in_cache";
549
 
Variable_name   Value
550
 
Qcache_queries_in_cache 16
551
 
show status like "Qcache_inserts";
552
 
Variable_name   Value
553
 
Qcache_inserts  16
554
 
show status like "Qcache_hits";
555
 
Variable_name   Value
556
 
Qcache_hits     13
557
 
-----------------------------------------------------
558
 
select * from t1        
559
 
-----------------------------------------------------
560
 
show status like "Qcache_queries_in_cache";
561
 
Variable_name   Value
562
 
Qcache_queries_in_cache 16
563
 
show status like "Qcache_inserts";
564
 
Variable_name   Value
565
 
Qcache_inserts  16
566
 
show status like "Qcache_hits";
567
 
Variable_name   Value
568
 
Qcache_hits     13
569
 
select * from t1        ;
570
 
a
571
 
1
572
 
2
573
 
3
574
 
select * from t1        ;
575
 
a
576
 
1
577
 
2
578
 
3
579
 
show status like "Qcache_queries_in_cache";
580
 
Variable_name   Value
581
 
Qcache_queries_in_cache 16
582
 
show status like "Qcache_inserts";
583
 
Variable_name   Value
584
 
Qcache_inserts  16
585
 
show status like "Qcache_hits";
586
 
Variable_name   Value
587
 
Qcache_hits     15
588
 
-----------------------------------------------------
589
 
select * from t1
590
 
/* comment in the end */
591
 
-----------------------------------------------------
592
 
show status like "Qcache_queries_in_cache";
593
 
Variable_name   Value
594
 
Qcache_queries_in_cache 16
595
 
show status like "Qcache_inserts";
596
 
Variable_name   Value
597
 
Qcache_inserts  16
598
 
show status like "Qcache_hits";
599
 
Variable_name   Value
600
 
Qcache_hits     15
601
 
select * from t1
602
 
/* comment in the end */;
603
 
a
604
 
1
605
 
2
606
 
3
607
 
select * from t1
608
 
/* comment in the end */;
609
 
a
610
 
1
611
 
2
612
 
3
613
 
show status like "Qcache_queries_in_cache";
614
 
Variable_name   Value
615
 
Qcache_queries_in_cache 17
616
 
show status like "Qcache_inserts";
617
 
Variable_name   Value
618
 
Qcache_inserts  17
619
 
show status like "Qcache_hits";
620
 
Variable_name   Value
621
 
Qcache_hits     16
622
 
-----------------------------------------------------
623
 
select * from t1
624
 
/* *\/ */
625
 
-----------------------------------------------------
626
 
show status like "Qcache_queries_in_cache";
627
 
Variable_name   Value
628
 
Qcache_queries_in_cache 17
629
 
show status like "Qcache_inserts";
630
 
Variable_name   Value
631
 
Qcache_inserts  17
632
 
show status like "Qcache_hits";
633
 
Variable_name   Value
634
 
Qcache_hits     16
635
 
select * from t1
636
 
/* *\/ */;
637
 
a
638
 
1
639
 
2
640
 
3
641
 
select * from t1
642
 
/* *\/ */;
643
 
a
644
 
1
645
 
2
646
 
3
647
 
show status like "Qcache_queries_in_cache";
648
 
Variable_name   Value
649
 
Qcache_queries_in_cache 18
650
 
show status like "Qcache_inserts";
651
 
Variable_name   Value
652
 
Qcache_inserts  18
653
 
show status like "Qcache_hits";
654
 
Variable_name   Value
655
 
Qcache_hits     17
656
 
-----------------------------------------------------
657
 
select * from t1
658
 
/* comment in the end */
659
 
 
660
 
-----------------------------------------------------
661
 
show status like "Qcache_queries_in_cache";
662
 
Variable_name   Value
663
 
Qcache_queries_in_cache 18
664
 
show status like "Qcache_inserts";
665
 
Variable_name   Value
666
 
Qcache_inserts  18
667
 
show status like "Qcache_hits";
668
 
Variable_name   Value
669
 
Qcache_hits     17
670
 
select * from t1
671
 
/* comment in the end */
672
 
;
673
 
a
674
 
1
675
 
2
676
 
3
677
 
select * from t1
678
 
/* comment in the end */
679
 
;
680
 
a
681
 
1
682
 
2
683
 
3
684
 
show status like "Qcache_queries_in_cache";
685
 
Variable_name   Value
686
 
Qcache_queries_in_cache 18
687
 
show status like "Qcache_inserts";
688
 
Variable_name   Value
689
 
Qcache_inserts  18
690
 
show status like "Qcache_hits";
691
 
Variable_name   Value
692
 
Qcache_hits     19
693
 
-----------------------------------------------------
694
 
select * from t1 #comment in the end
695
 
-----------------------------------------------------
696
 
show status like "Qcache_queries_in_cache";
697
 
Variable_name   Value
698
 
Qcache_queries_in_cache 18
699
 
show status like "Qcache_inserts";
700
 
Variable_name   Value
701
 
Qcache_inserts  18
702
 
show status like "Qcache_hits";
703
 
Variable_name   Value
704
 
Qcache_hits     19
705
 
select * from t1 #comment in the end;
706
 
a
707
 
1
708
 
2
709
 
3
710
 
select * from t1 #comment in the end;
711
 
a
712
 
1
713
 
2
714
 
3
715
 
show status like "Qcache_queries_in_cache";
716
 
Variable_name   Value
717
 
Qcache_queries_in_cache 19
718
 
show status like "Qcache_inserts";
719
 
Variable_name   Value
720
 
Qcache_inserts  19
721
 
show status like "Qcache_hits";
722
 
Variable_name   Value
723
 
Qcache_hits     20
724
 
-----------------------------------------------------
725
 
select * from t1 #comment in the end
726
 
 
727
 
-----------------------------------------------------
728
 
show status like "Qcache_queries_in_cache";
729
 
Variable_name   Value
730
 
Qcache_queries_in_cache 19
731
 
show status like "Qcache_inserts";
732
 
Variable_name   Value
733
 
Qcache_inserts  19
734
 
show status like "Qcache_hits";
735
 
Variable_name   Value
736
 
Qcache_hits     20
737
 
select * from t1 #comment in the end
738
 
;
739
 
a
740
 
1
741
 
2
742
 
3
743
 
select * from t1 #comment in the end
744
 
;
745
 
a
746
 
1
747
 
2
748
 
3
749
 
show status like "Qcache_queries_in_cache";
750
 
Variable_name   Value
751
 
Qcache_queries_in_cache 19
752
 
show status like "Qcache_inserts";
753
 
Variable_name   Value
754
 
Qcache_inserts  19
755
 
show status like "Qcache_hits";
756
 
Variable_name   Value
757
 
Qcache_hits     22
758
 
-----------------------------------------------------
759
 
select * from t1 -- comment in the end
760
 
-----------------------------------------------------
761
 
show status like "Qcache_queries_in_cache";
762
 
Variable_name   Value
763
 
Qcache_queries_in_cache 19
764
 
show status like "Qcache_inserts";
765
 
Variable_name   Value
766
 
Qcache_inserts  19
767
 
show status like "Qcache_hits";
768
 
Variable_name   Value
769
 
Qcache_hits     22
770
 
select * from t1 -- comment in the end;
771
 
a
772
 
1
773
 
2
774
 
3
775
 
select * from t1 -- comment in the end;
776
 
a
777
 
1
778
 
2
779
 
3
780
 
show status like "Qcache_queries_in_cache";
781
 
Variable_name   Value
782
 
Qcache_queries_in_cache 20
783
 
show status like "Qcache_inserts";
784
 
Variable_name   Value
785
 
Qcache_inserts  20
786
 
show status like "Qcache_hits";
787
 
Variable_name   Value
788
 
Qcache_hits     23
789
 
-----------------------------------------------------
790
 
select * from t1 -- comment in the end
791
 
 
792
 
-----------------------------------------------------
793
 
show status like "Qcache_queries_in_cache";
794
 
Variable_name   Value
795
 
Qcache_queries_in_cache 20
796
 
show status like "Qcache_inserts";
797
 
Variable_name   Value
798
 
Qcache_inserts  20
799
 
show status like "Qcache_hits";
800
 
Variable_name   Value
801
 
Qcache_hits     23
802
 
select * from t1 -- comment in the end
803
 
;
804
 
a
805
 
1
806
 
2
807
 
3
808
 
select * from t1 -- comment in the end
809
 
;
810
 
a
811
 
1
812
 
2
813
 
3
814
 
show status like "Qcache_queries_in_cache";
815
 
Variable_name   Value
816
 
Qcache_queries_in_cache 20
817
 
show status like "Qcache_inserts";
818
 
Variable_name   Value
819
 
Qcache_inserts  20
820
 
show status like "Qcache_hits";
821
 
Variable_name   Value
822
 
Qcache_hits     25
823
 
-----------------------------------------------------
824
 
select ' \'  ' from t1
825
 
-----------------------------------------------------
826
 
show status like "Qcache_queries_in_cache";
827
 
Variable_name   Value
828
 
Qcache_queries_in_cache 20
829
 
show status like "Qcache_inserts";
830
 
Variable_name   Value
831
 
Qcache_inserts  20
832
 
show status like "Qcache_hits";
833
 
Variable_name   Value
834
 
Qcache_hits     25
835
 
select ' \'  ' from t1;
836
 
'  
837
 
 '  
838
 
 '  
839
 
 '  
840
 
select ' \'  ' from t1;
841
 
'  
842
 
 '  
843
 
 '  
844
 
 '  
845
 
show status like "Qcache_queries_in_cache";
846
 
Variable_name   Value
847
 
Qcache_queries_in_cache 21
848
 
show status like "Qcache_inserts";
849
 
Variable_name   Value
850
 
Qcache_inserts  21
851
 
show status like "Qcache_hits";
852
 
Variable_name   Value
853
 
Qcache_hits     26
854
 
DROP TABLE t1;
855
 
SET GLOBAL query_cache_size=default;
856
 
set global query_cache_strip_comments=OFF;