~sergei.glushchenko/percona-server/55-tp

« back to all changes in this revision

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

  • Committer: Oleg Tsarev
  • Date: 2010-12-09 18:30:58 UTC
  • Revision ID: oleg.tsarev@percona.com-20101209183058-1mq1qrgjjkz3qxof
propogate Oleg's patches

Show diffs side-by-side

added added

removed removed

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