1set GLOBAL query_cache_size=1355776; 2flush query cache; 3flush query cache; 4reset query cache; 5flush status; 6drop table if exists t1,t2,t3,t4,t11,t21,t1_1,t1_2,t9,t9_1,t9_2; 7drop database if exists mysqltest; 8drop table if exists ```a`; 9drop view if exists v1; 10create table t1 (a int not null); 11insert into t1 values (1),(2),(3); 12select * from t1; 13a 141 152 163 17select * from t1; 18a 191 202 213 22select sql_no_cache * from t1; 23a 241 252 263 27select length(now()) from t1; 28length(now()) 2919 3019 3119 32show status like "Qcache_queries_in_cache"; 33Variable_name Value 34Qcache_queries_in_cache 1 35show status like "Qcache_inserts"; 36Variable_name Value 37Qcache_inserts 1 38show status like "Qcache_hits"; 39Variable_name Value 40Qcache_hits 1 41drop table t1; 42show status like "Qcache_queries_in_cache"; 43Variable_name Value 44Qcache_queries_in_cache 0 45create table t1 (a int not null); 46insert into t1 values (1),(2),(3); 47create table t2 (a int not null); 48insert into t2 values (4),(5),(6); 49create table t3 (a int not null) engine=MERGE UNION=(t1,t2) INSERT_METHOD=FIRST; 50select * from t3; 51a 521 532 543 554 565 576 58select * from t3; 59a 601 612 623 634 645 656 66show status like "Qcache_hits"; 67Variable_name Value 68Qcache_hits 2 69show status like "Qcache_queries_in_cache"; 70Variable_name Value 71Qcache_queries_in_cache 1 72insert into t2 values (7); 73show status like "Qcache_queries_in_cache"; 74Variable_name Value 75Qcache_queries_in_cache 0 76select * from t1; 77a 781 792 803 81select * from t1; 82a 831 842 853 86show status like "Qcache_hits"; 87Variable_name Value 88Qcache_hits 3 89show status like "Qcache_queries_in_cache"; 90Variable_name Value 91Qcache_queries_in_cache 1 92insert into t3 values (8); 93show status like "Qcache_queries_in_cache"; 94Variable_name Value 95Qcache_queries_in_cache 0 96select * from t3; 97a 981 992 1003 1018 1024 1035 1046 1057 106show status like "Qcache_queries_in_cache"; 107Variable_name Value 108Qcache_queries_in_cache 1 109update t2 set a=9 where a=7; 110show status like "Qcache_queries_in_cache"; 111Variable_name Value 112Qcache_queries_in_cache 0 113select * from t1; 114a 1151 1162 1173 1188 119show status like "Qcache_queries_in_cache"; 120Variable_name Value 121Qcache_queries_in_cache 1 122update t3 set a=10 where a=1; 123show status like "Qcache_queries_in_cache"; 124Variable_name Value 125Qcache_queries_in_cache 0 126select * from t3; 127a 12810 1292 1303 1318 1324 1335 1346 1359 136show status like "Qcache_queries_in_cache"; 137Variable_name Value 138Qcache_queries_in_cache 1 139delete from t2 where a=9; 140show status like "Qcache_queries_in_cache"; 141Variable_name Value 142Qcache_queries_in_cache 0 143select * from t1; 144a 14510 1462 1473 1488 149show status like "Qcache_queries_in_cache"; 150Variable_name Value 151Qcache_queries_in_cache 1 152delete from t3 where a=10; 153show status like "Qcache_queries_in_cache"; 154Variable_name Value 155Qcache_queries_in_cache 0 156drop table t1, t2, t3; 157set query_cache_type=demand; 158create table t1 (a int not null); 159insert into t1 values (1),(2),(3); 160select * from t1; 161a 1621 1632 1643 165show status like "Qcache_queries_in_cache"; 166Variable_name Value 167Qcache_queries_in_cache 0 168select sql_cache * from t1 union select * from t1; 169a 1701 1712 1723 173set query_cache_type=2; 174select sql_cache * from t1 union select * from t1; 175a 1761 1772 1783 179show status like "Qcache_hits"; 180Variable_name Value 181Qcache_hits 4 182show status like "Qcache_queries_in_cache"; 183Variable_name Value 184Qcache_queries_in_cache 1 185set query_cache_type=on; 186reset query cache; 187show status like "Qcache_queries_in_cache"; 188Variable_name Value 189Qcache_queries_in_cache 0 190select sql_no_cache * from t1; 191a 1921 1932 1943 195show status like "Qcache_queries_in_cache"; 196Variable_name Value 197Qcache_queries_in_cache 0 198drop table t1; 199create table t1 (a text not null); 200select CONNECTION_ID() from t1; 201CONNECTION_ID() 202select FOUND_ROWS(); 203FOUND_ROWS() 2040 205select NOW() from t1; 206NOW() 207select CURDATE() from t1; 208CURDATE() 209select CURTIME() from t1; 210CURTIME() 211select DATABASE() from t1; 212DATABASE() 213select ENCRYPT("test") from t1; 214ENCRYPT("test") 215select LAST_INSERT_ID() from t1; 216LAST_INSERT_ID() 217select RAND() from t1; 218RAND() 219select UNIX_TIMESTAMP() from t1; 220UNIX_TIMESTAMP() 221select USER() from t1; 222USER() 223select CURRENT_USER() from t1; 224CURRENT_USER() 225select benchmark(1,1) from t1; 226benchmark(1,1) 227explain extended select benchmark(1,1) from t1; 228id select_type table type possible_keys key key_len ref rows filtered Extra 2291 SIMPLE t1 system NULL NULL NULL NULL 0 0.00 const row not found 230Warnings: 231Note 1003 /* select#1 */ select benchmark(1,1) AS `benchmark(1,1)` from `test`.`t1` 232show status like "Qcache_queries_in_cache"; 233Variable_name Value 234Qcache_queries_in_cache 0 235create table t2 (a text not null); 236insert into t1 values("1111111111111111111111111111111111111111111111111111"); 237insert into t2 select * from t1; 238insert into t1 select * from t2; 239insert into t2 select * from t1; 240insert into t1 select * from t2; 241insert into t2 select * from t1; 242insert into t1 select * from t2; 243insert into t2 select * from t1; 244insert into t1 select * from t2; 245insert into t2 select * from t1; 246insert into t1 select * from t2; 247insert into t2 select * from t1; 248insert into t1 select * from t2; 249insert into t2 select * from t1; 250insert into t1 select * from t2; 251insert into t2 select * from t1; 252insert into t1 select * from t2; 253insert into t2 select * from t1; 254insert into t1 select * from t2; 255show status like "Qcache_hits"; 256Variable_name Value 257Qcache_hits 4 258show status like "Qcache_lowmem_prunes"; 259Variable_name Value 260Qcache_lowmem_prunes 0 261select a as a1, a as a2 from t1; 262select a as a2, a as a3 from t1; 263select a as a3, a as a4 from t1; 264select a as a1, a as a2 from t1; 265show status like "Qcache_hits"; 266Variable_name Value 267Qcache_hits 4 268show status like "Qcache_queries_in_cache"; 269Variable_name Value 270Qcache_queries_in_cache 2 271show status like "Qcache_lowmem_prunes"; 272Variable_name Value 273Qcache_lowmem_prunes 2 274reset query cache; 275insert into t2 select * from t1; 276insert into t1 select * from t2; 277insert into t2 select * from t1; 278insert into t1 select * from t2; 279insert into t2 select * from t1; 280insert into t1 select * from t2; 281insert into t2 select * from t1; 282insert into t1 select * from t2; 283insert into t2 select * from t1; 284insert into t1 select * from t2; 285select * from t1; 286show status like "Qcache_queries_in_cache"; 287Variable_name Value 288Qcache_queries_in_cache 0 289drop table t1,t2; 290create database mysqltest; 291create table mysqltest.t1 (i int not null auto_increment, a int, primary key (i)); 292insert into mysqltest.t1 (a) values (1); 293select * from mysqltest.t1 where i is null; 294i a 295create table t1(a int); 296select * from t1; 297a 298show status like "Qcache_queries_in_cache"; 299Variable_name Value 300Qcache_queries_in_cache 2 301select * from mysqltest.t1; 302i a 3031 1 304show status like "Qcache_queries_in_cache"; 305Variable_name Value 306Qcache_queries_in_cache 3 307drop database mysqltest; 308show status like "Qcache_queries_in_cache"; 309Variable_name Value 310Qcache_queries_in_cache 1 311drop table t1; 312create table t1 (a char(1) not null collate koi8r_general_ci); 313insert into t1 values(_koi8r"�"); 314set CHARACTER SET koi8r; 315select * from t1; 316a 317� 318set CHARACTER SET cp1251_koi8; 319select * from t1; 320a 321� 322set CHARACTER SET DEFAULT; 323show status like "Qcache_queries_in_cache"; 324Variable_name Value 325Qcache_queries_in_cache 2 326show status like "Qcache_hits"; 327Variable_name Value 328Qcache_hits 4 329drop table t1; 330create database if not exists mysqltest; 331create table mysqltest.t1 (i int not null); 332create table t1 (i int not null); 333insert into mysqltest.t1 (i) values (1); 334insert into t1 (i) values (2); 335select * from t1; 336i 3372 338use mysqltest; 339select * from t1; 340i 3411 342select * from t1; 343i 3441 345use test; 346select * from t1; 347i 3482 349show status like "Qcache_queries_in_cache"; 350Variable_name Value 351Qcache_queries_in_cache 2 352show status like "Qcache_hits"; 353Variable_name Value 354Qcache_hits 6 355drop database mysqltest; 356drop table t1; 357create table t1 (i int not null); 358insert into t1 (i) values (1),(2),(3),(4); 359select SQL_CALC_FOUND_ROWS * from t1 limit 2; 360i 3611 3622 363select FOUND_ROWS(); 364FOUND_ROWS() 3654 366show status like "Qcache_hits"; 367Variable_name Value 368Qcache_hits 6 369show status like "Qcache_queries_in_cache"; 370Variable_name Value 371Qcache_queries_in_cache 1 372select * from t1 where i=1; 373i 3741 375select FOUND_ROWS(); 376FOUND_ROWS() 3771 378show status like "Qcache_hits"; 379Variable_name Value 380Qcache_hits 6 381show status like "Qcache_queries_in_cache"; 382Variable_name Value 383Qcache_queries_in_cache 2 384select SQL_CALC_FOUND_ROWS * from t1 limit 2; 385i 3861 3872 388select FOUND_ROWS(); 389FOUND_ROWS() 3904 391show status like "Qcache_hits"; 392Variable_name Value 393Qcache_hits 7 394show status like "Qcache_queries_in_cache"; 395Variable_name Value 396Qcache_queries_in_cache 2 397select * from t1 where i=1; 398i 3991 400select FOUND_ROWS(); 401FOUND_ROWS() 4021 403show status like "Qcache_hits"; 404Variable_name Value 405Qcache_hits 8 406show status like "Qcache_queries_in_cache"; 407Variable_name Value 408Qcache_queries_in_cache 2 409drop table t1; 410flush query cache; 411reset query cache; 412create table t1 (a int not null); 413insert into t1 values (1),(2),(3); 414select * from t1; 415a 4161 4172 4183 419select * from t1; 420a 4211 4222 4233 424show status like "Qcache_queries_in_cache"; 425Variable_name Value 426Qcache_queries_in_cache 1 427insert delayed into t1 values (4); 428Warnings: 429Warning 1287 'INSERT DELAYED' is deprecated and will be removed in a future release. Please use INSERT instead 430select a from t1; 431a 4321 4332 4343 4354 436show status like "Qcache_queries_in_cache"; 437Variable_name Value 438Qcache_queries_in_cache 1 439drop table t1; 440show status like "Qcache_queries_in_cache"; 441Variable_name Value 442Qcache_queries_in_cache 0 443show global variables like "query_cache_min_res_unit"; 444Variable_name Value 445query_cache_min_res_unit 4096 446set GLOBAL query_cache_min_res_unit=1001; 447show global variables like "query_cache_min_res_unit"; 448Variable_name Value 449query_cache_min_res_unit 1008 450create table t1 (a int not null); 451insert into t1 values (1),(2),(3); 452create table t2 (a int not null); 453insert into t2 values (1),(2),(3); 454select * from t1; 455a 4561 4572 4583 459select * from t1; 460a 4611 4622 4633 464select * from t2; 465a 4661 4672 4683 469select * from t2; 470a 4711 4722 4733 474show status like "Qcache_hits"; 475Variable_name Value 476Qcache_hits 11 477show status like "Qcache_queries_in_cache"; 478Variable_name Value 479Qcache_queries_in_cache 2 480drop table t1; 481select a from t2; 482a 4831 4842 4853 486select a from t2; 487a 4881 4892 4903 491show status like "Qcache_hits"; 492Variable_name Value 493Qcache_hits 12 494show status like "Qcache_queries_in_cache"; 495Variable_name Value 496Qcache_queries_in_cache 2 497drop table t2; 498set GLOBAL query_cache_min_res_unit=default; 499show global variables like "query_cache_min_res_unit"; 500Variable_name Value 501query_cache_min_res_unit 4096 502create table t1 (a int not null); 503insert into t1 values (1); 504select "aaa" from t1; 505aaa 506aaa 507select "AAA" from t1; 508AAA 509AAA 510drop table t1; 511create table t1 (a int); 512set GLOBAL query_cache_size=1000; 513Warnings: 514Warning 1292 Truncated incorrect query_cache_size value: '1000' 515show global variables like "query_cache_size"; 516Variable_name Value 517query_cache_size 0 518select * from t1; 519a 520set GLOBAL query_cache_size=1024; 521Warnings: 522Warning 1282 Query cache failed to set size 1024; new query cache size is 0 523show global variables like "query_cache_size"; 524Variable_name Value 525query_cache_size 0 526select * from t1; 527a 528set GLOBAL query_cache_size=10240; 529Warnings: 530Warning 1282 Query cache failed to set size 10240; new query cache size is 0 531show global variables like "query_cache_size"; 532Variable_name Value 533query_cache_size 0 534select * from t1; 535a 536set GLOBAL query_cache_size=20480; 537Warnings: 538Warning 1282 Query cache failed to set size 20480; new query cache size is 0 539show global variables like "query_cache_size"; 540Variable_name Value 541query_cache_size 0 542select * from t1; 543a 544set GLOBAL query_cache_size=40960; 545Warnings: 546Warning 1282 Query cache failed to set size 40960; new query cache size is 0 547show global variables like "query_cache_size"; 548Variable_name Value 549query_cache_size 0 550select * from t1; 551a 552set GLOBAL query_cache_size=51200; 553show global variables like "query_cache_size"; 554Variable_name Value 555query_cache_size 51200 556select * from t1; 557a 558set GLOBAL query_cache_size=61440; 559show global variables like "query_cache_size"; 560Variable_name Value 561query_cache_size 61440 562select * from t1; 563a 564set GLOBAL query_cache_size=81920; 565show global variables like "query_cache_size"; 566Variable_name Value 567query_cache_size 81920 568select * from t1; 569a 570set GLOBAL query_cache_size=102400; 571show global variables like "query_cache_size"; 572Variable_name Value 573query_cache_size 102400 574select * from t1; 575a 576drop table t1; 577set GLOBAL query_cache_size=1048576; 578create table t1 (i int not null); 579create table t2 (i int not null); 580select * from t1; 581i 582show status like "Qcache_queries_in_cache"; 583Variable_name Value 584Qcache_queries_in_cache 1 585create temporary table t3 (i int not null); 586select * from t2; 587i 588show status like "Qcache_queries_in_cache"; 589Variable_name Value 590Qcache_queries_in_cache 2 591select * from t3; 592i 593show status like "Qcache_queries_in_cache"; 594Variable_name Value 595Qcache_queries_in_cache 2 596update t1 set i=(select distinct 1 from (select * from t2) a); 597drop table t1, t2, t3; 598use mysql; 599select * from db; 600show status like "Qcache_queries_in_cache"; 601Variable_name Value 602Qcache_queries_in_cache 0 603use test; 604select * from mysql.db; 605show status like "Qcache_queries_in_cache"; 606Variable_name Value 607Qcache_queries_in_cache 0 608create table t1(id int auto_increment primary key); 609insert into t1 values (NULL), (NULL), (NULL); 610select * from t1 where id=2; 611id 6122 613alter table t1 rename to t2; 614select * from t1 where id=2; 615ERROR 42S02: Table 'test.t1' doesn't exist 616drop table t2; 617select * from t1 where id=2; 618ERROR 42S02: Table 'test.t1' doesn't exist 619create table t1 (word char(20) not null); 620select * from t1; 621word 622show status like "Qcache_queries_in_cache"; 623Variable_name Value 624Qcache_queries_in_cache 1 625load data infile 'MYSQLTEST_VARDIR/std_data/words.dat' into table t1; 626show status like "Qcache_queries_in_cache"; 627Variable_name Value 628Qcache_queries_in_cache 0 629select count(*) from t1; 630count(*) 63170 632drop table t1; 633create table t1 (a int); 634insert into t1 values (1),(2),(3); 635show status like "Qcache_queries_in_cache"; 636Variable_name Value 637Qcache_queries_in_cache 0 638select * from t1 into outfile "query_cache.out.file"; 639select * from t1 into outfile "query_cache.out.file"; 640ERROR HY000: File 'query_cache.out.file' already exists 641select * from t1 limit 1 into dumpfile "query_cache.dump.file"; 642show status like "Qcache_queries_in_cache"; 643Variable_name Value 644Qcache_queries_in_cache 0 645drop table t1; 646create table t1 (a int); 647insert into t1 values (1),(2); 648show status like "Qcache_queries_in_cache"; 649Variable_name Value 650Qcache_queries_in_cache 0 651select * from t1; 652a 6531 6542 655SET SQL_SELECT_LIMIT=1; 656select * from t1; 657a 6581 659show status like "Qcache_queries_in_cache"; 660Variable_name Value 661Qcache_queries_in_cache 2 662SET SQL_SELECT_LIMIT=DEFAULT; 663drop table t1; 664flush query cache; 665reset query cache; 666flush status; 667set GLOBAL query_cache_size=1048576; 668create table t1 (a int not null); 669insert into t1 values (1),(2),(3); 670create table t2 (a text not null); 671create table t3 (a text not null); 672insert into t3 values("1111111111111111111111111111111111111111111111111111"); 673insert into t2 select * from t3; 674insert into t3 select * from t2; 675insert into t2 select * from t3; 676insert into t3 select * from t2; 677insert into t2 select * from t3; 678insert into t3 select * from t2; 679insert into t2 select * from t3; 680insert into t3 select * from t2; 681insert into t2 select * from t3; 682insert into t3 select * from t2; 683drop table t2; 684create table t2 (a int not null); 685insert into t2 values (1),(2),(3); 686create table t4 (a int not null); 687insert into t4 values (1),(2),(3); 688select * from t4; 689select * from t2; 690select * from t1 as tt, t1 as ttt where tt.a=1 and ttt.a=2; 691select * from t2; 692select * from t4; 693select * from t1 as tt, t1 as ttt where tt.a=1 and ttt.a=2; 694select * from t2; 695select * from t4; 696select * from t1 as tt, t1 as ttt where tt.a=1 and ttt.a=2; 697delete from t2 where a=1; 698flush query cache; 699select * from t3; 700delete from t4 where a=1; 701flush query cache; 702drop table t1,t2,t3,t4; 703set query_cache_wlock_invalidate=1; 704create table t1 (a int not null); 705create table t2 (a int not null); 706create view v1 as select * from t1; 707select * from t1; 708a 709select * from t2; 710a 711show status like "Qcache_queries_in_cache"; 712Variable_name Value 713Qcache_queries_in_cache 2 714lock table t1 write, t2 read; 715show status like "Qcache_queries_in_cache"; 716Variable_name Value 717Qcache_queries_in_cache 1 718unlock table; 719select * from t1; 720a 721show status like "Qcache_queries_in_cache"; 722Variable_name Value 723Qcache_queries_in_cache 2 724lock table v1 write; 725show status like "Qcache_queries_in_cache"; 726Variable_name Value 727Qcache_queries_in_cache 2 728unlock table; 729drop view v1; 730drop table t1,t2; 731set query_cache_wlock_invalidate=default; 732CREATE TABLE t1 (id INT PRIMARY KEY); 733insert into t1 values (1),(2),(3); 734select * from t1; 735id 7361 7372 7383 739create temporary table t1 (a int not null auto_increment 740primary key); 741select * from t1; 742a 743drop table t1; 744drop table t1; 745SET NAMES koi8r; 746CREATE TABLE t1 (a char(1) character set koi8r); 747INSERT INTO t1 VALUES (_koi8r'�'),(_koi8r'�'); 748SELECT a,'�','�'='�' FROM t1; 749a � '�'='�' 750� � 1 751� � 1 752show status like "Qcache_hits"; 753Variable_name Value 754Qcache_hits 6 755show status like "Qcache_queries_in_cache"; 756Variable_name Value 757Qcache_queries_in_cache 1 758set collation_connection=koi8r_bin; 759SELECT a,'�','�'='�' FROM t1; 760a � '�'='�' 761� � 0 762� � 0 763show status like "Qcache_hits"; 764Variable_name Value 765Qcache_hits 6 766show status like "Qcache_queries_in_cache"; 767Variable_name Value 768Qcache_queries_in_cache 2 769set character_set_client=cp1251; 770SELECT a,'�','�'='�' FROM t1; 771a � '�'='�' 772� � 0 773� � 0 774show status like "Qcache_hits"; 775Variable_name Value 776Qcache_hits 6 777show status like "Qcache_queries_in_cache"; 778Variable_name Value 779Qcache_queries_in_cache 3 780set character_set_results=cp1251; 781SELECT a,'�','�'='�' FROM t1; 782a � '�'='�' 783� � 0 784� � 0 785show status like "Qcache_hits"; 786Variable_name Value 787Qcache_hits 6 788show status like "Qcache_queries_in_cache"; 789Variable_name Value 790Qcache_queries_in_cache 4 791SET NAMES default; 792DROP TABLE t1; 793CREATE TABLE t1 (a int(1)); 794CREATE DATABASE mysqltest; 795USE mysqltest; 796DROP DATABASE mysqltest; 797SELECT * FROM test.t1; 798a 799USE test; 800DROP TABLE t1; 801set character_set_results=null; 802select @@character_set_results; 803@@character_set_results 804NULL 805set character_set_results=default; 806set GLOBAL query_cache_size=1355776; 807create table t1 (id int auto_increment primary key, c char(25)); 808insert into t1 set c = repeat('x',24); 809insert into t1 set c = concat(repeat('x',24),'x'); 810insert into t1 set c = concat(repeat('x',24),'w'); 811insert into t1 set c = concat(repeat('x',24),'y'); 812set max_sort_length=200; 813select c from t1 order by c, id; 814c 815xxxxxxxxxxxxxxxxxxxxxxxx 816xxxxxxxxxxxxxxxxxxxxxxxxw 817xxxxxxxxxxxxxxxxxxxxxxxxx 818xxxxxxxxxxxxxxxxxxxxxxxxy 819reset query cache; 820set max_sort_length=20; 821select c from t1 order by c, id; 822c 823xxxxxxxxxxxxxxxxxxxxxxxx 824xxxxxxxxxxxxxxxxxxxxxxxxx 825xxxxxxxxxxxxxxxxxxxxxxxxw 826xxxxxxxxxxxxxxxxxxxxxxxxy 827set max_sort_length=200; 828select c from t1 order by c, id; 829c 830xxxxxxxxxxxxxxxxxxxxxxxx 831xxxxxxxxxxxxxxxxxxxxxxxxw 832xxxxxxxxxxxxxxxxxxxxxxxxx 833xxxxxxxxxxxxxxxxxxxxxxxxy 834set max_sort_length=default; 835select '1' || '3' from t1; 836'1' || '3' 8371 8381 8391 8401 841set SQL_MODE=oracle; 842select '1' || '3' from t1; 843'1' || '3' 84413 84513 84613 84713 848set SQL_MODE=default; 849drop table t1; 850create table t1 (a varchar(20), b int); 851insert into t1 values ('12345678901234567890', 1); 852set group_concat_max_len=10; 853select group_concat(a) FROM t1 group by b; 854group_concat(a) 8551234567890 856Warnings: 857Warning 1260 Row 1 was cut by GROUP_CONCAT() 858set group_concat_max_len=1024; 859select group_concat(a) FROM t1 group by b; 860group_concat(a) 86112345678901234567890 862set group_concat_max_len=default; 863drop table t1; 864create table t1 (a int); 865show status like "Qcache_queries_in_cache"; 866Variable_name Value 867Qcache_queries_in_cache 0 868show status like "Qcache_inserts"; 869Variable_name Value 870Qcache_inserts 19 871show status like "Qcache_hits"; 872Variable_name Value 873Qcache_hits 6 874/**/ select * from t1; 875a 876/**/ select * from t1; 877a 878show status like "Qcache_queries_in_cache"; 879Variable_name Value 880Qcache_queries_in_cache 1 881show status like "Qcache_inserts"; 882Variable_name Value 883Qcache_inserts 20 884show status like "Qcache_hits"; 885Variable_name Value 886Qcache_hits 7 887DROP TABLE t1; 888SET GLOBAL query_cache_size=0; 889SET SESSION query_cache_type = 2; 890create table t1(a int); 891select table_name from information_schema.tables 892where table_schema="test"; 893table_name 894t1 895drop table t1; 896select table_name from information_schema.tables 897where table_schema="test"; 898table_name 899SET SESSION query_cache_type = 1; 900set global query_cache_size=1024*1024; 901flush query cache; 902create table t1 ( a int ); 903insert into t1 values (1); 904select a from t1; 905a 9061 907select a from t1; 908a 9091 910show status like 'qcache_queries_in_cache'; 911Variable_name Value 912Qcache_queries_in_cache 1 913repair table t1; 914Table Op Msg_type Msg_text 915test.t1 repair status OK 916show status like 'qcache_queries_in_cache'; 917Variable_name Value 918Qcache_queries_in_cache 0 919drop table t1; 920set GLOBAL query_cache_size=64*1024; 921create table t1 (a text); 922insert into t1 values (repeat('abcdefghijklmnopqrstuvwxyz', 550)); 923create table t2 (a text); 924insert into t2 values (repeat('ijklmnopqrstuvwxyzabcdefgh', 550)); 925select a from t1; 926select a from t2; 927show status like 'Qcache_%_blocks'; 928Variable_name Value 929Qcache_free_blocks 1 930Qcache_total_blocks 7 931insert into t1 select reverse(a) from t1; 932show status like 'Qcache_%_blocks'; 933Variable_name Value 934Qcache_free_blocks 2 935Qcache_total_blocks 5 936select a from t1; 937show status like 'Qcache_%_blocks'; 938Variable_name Value 939Qcache_free_blocks 1 940Qcache_total_blocks 8 941select a from t1; 942a 943abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz 944zyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcba 945flush query cache; 946drop table t1, t2; 947set GLOBAL query_cache_size=1355776; 948flush status; 949CREATE TABLE t1 ( 950`date` datetime NOT NULL default '0000-00-00 00:00:00', 951KEY `date` (`date`) 952) ENGINE=MyISAM; 953INSERT INTO t1 VALUES ('20050326'); 954INSERT INTO t1 VALUES ('20050325'); 955SELECT COUNT(*) FROM t1 WHERE date BETWEEN '20050326' AND '20050327 invalid'; 956COUNT(*) 9570 958Warnings: 959Warning 1292 Incorrect datetime value: '20050327 invalid' for column 'date' at row 1 960Warning 1292 Incorrect datetime value: '20050327 invalid' for column 'date' at row 1 961SELECT COUNT(*) FROM t1 WHERE date BETWEEN '20050326' AND '20050328 invalid'; 962COUNT(*) 9630 964Warnings: 965Warning 1292 Incorrect datetime value: '20050328 invalid' for column 'date' at row 1 966Warning 1292 Incorrect datetime value: '20050328 invalid' for column 'date' at row 1 967SELECT COUNT(*) FROM t1 WHERE date BETWEEN '20050326' AND '20050327 invalid'; 968COUNT(*) 9690 970Warnings: 971Warning 1292 Incorrect datetime value: '20050327 invalid' for column 'date' at row 1 972Warning 1292 Incorrect datetime value: '20050327 invalid' for column 'date' at row 1 973show status like "Qcache_queries_in_cache"; 974Variable_name Value 975Qcache_queries_in_cache 0 976show status like "Qcache_inserts"; 977Variable_name Value 978Qcache_inserts 0 979show status like "Qcache_hits"; 980Variable_name Value 981Qcache_hits 0 982drop table t1; 983create table t1 (a int); 984insert into t1 values (1); 985reset query cache; 986flush status; 987select * from (select * from t1) a; 988a 9891 990show status like "Qcache_queries_in_cache"; 991Variable_name Value 992Qcache_queries_in_cache 1 993show status like "Qcache_inserts"; 994Variable_name Value 995Qcache_inserts 1 996show status like "Qcache_hits"; 997Variable_name Value 998Qcache_hits 0 999select * from (select * from t1) a; 1000a 10011 1002show status like "Qcache_queries_in_cache"; 1003Variable_name Value 1004Qcache_queries_in_cache 1 1005show status like "Qcache_inserts"; 1006Variable_name Value 1007Qcache_inserts 1 1008show status like "Qcache_hits"; 1009Variable_name Value 1010Qcache_hits 1 1011insert into t1 values (2); 1012show status like "Qcache_queries_in_cache"; 1013Variable_name Value 1014Qcache_queries_in_cache 0 1015show status like "Qcache_inserts"; 1016Variable_name Value 1017Qcache_inserts 1 1018show status like "Qcache_hits"; 1019Variable_name Value 1020Qcache_hits 1 1021select * from (select * from t1) a; 1022a 10231 10242 1025show status like "Qcache_queries_in_cache"; 1026Variable_name Value 1027Qcache_queries_in_cache 1 1028show status like "Qcache_inserts"; 1029Variable_name Value 1030Qcache_inserts 2 1031show status like "Qcache_hits"; 1032Variable_name Value 1033Qcache_hits 1 1034drop table t1; 1035create table t1 (a int); 1036flush status; 1037(select a from t1) union (select a from t1); 1038a 1039show status like "Qcache_queries_in_cache"; 1040Variable_name Value 1041Qcache_queries_in_cache 1 1042show status like "Qcache_inserts"; 1043Variable_name Value 1044Qcache_inserts 1 1045show status like "Qcache_hits"; 1046Variable_name Value 1047Qcache_hits 0 1048(select a from t1) union (select a from t1); 1049a 1050show status like "Qcache_queries_in_cache"; 1051Variable_name Value 1052Qcache_queries_in_cache 1 1053show status like "Qcache_inserts"; 1054Variable_name Value 1055Qcache_inserts 1 1056show status like "Qcache_hits"; 1057Variable_name Value 1058Qcache_hits 1 1059drop table t1; 1060create table t1 (a int); 1061insert into t1 values (1),(2); 1062drop procedure if exists p1; 1063CREATE PROCEDURE `p1`() 1064begin 1065Declare c1 cursor for select a from t1; 1066open c1; 1067select * from t1; 1068end// 1069call p1()// 1070a 10711 10722 1073drop procedure p1; 1074create function f1() returns int 1075begin 1076Declare var1 int; 1077select max(a) from t1 into var1; 1078return var1; 1079end// 1080create procedure `p1`() 1081begin 1082select a, f1() from t1; 1083end// 1084SET @old_log_bin_trust_function_creators= @@global.log_bin_trust_function_creators; 1085SET GLOBAL log_bin_trust_function_creators = 1; 1086call p1()// 1087a f1() 10881 2 10892 2 1090SET GLOBAL log_bin_trust_function_creators = @old_log_bin_trust_function_creators; 1091drop procedure p1// 1092drop function f1// 1093drop table t1// 1094flush query cache; 1095reset query cache; 1096flush status; 1097create table t1 (s1 int)// 1098create procedure f1 () begin 1099select sql_cache * from t1; 1100select sql_cache * from t1; 1101select sql_cache * from t1; 1102end;// 1103create procedure f2 () begin 1104select sql_cache * from t1 where s1=1; 1105select sql_cache * from t1; 1106end;// 1107create procedure f3 () begin 1108select sql_cache * from t1; 1109select sql_cache * from t1 where s1=1; 1110end;// 1111create procedure f4 () begin 1112select sql_cache * from t1; 1113select sql_cache * from t1 where s1=1; 1114select sql_cache * from t1; 1115select sql_cache * from t1 where s1=1; 1116select sql_cache * from t1 where s1=1; 1117end;// 1118call f1(); 1119s1 1120s1 1121s1 1122call f1(); 1123s1 1124s1 1125s1 1126call f1(); 1127s1 1128s1 1129s1 1130select sql_cache * from t1; 1131s1 1132insert into t1 values (1); 1133select sql_cache * from t1; 1134s1 11351 1136call f1(); 1137s1 11381 1139s1 11401 1141s1 11421 1143call f1(); 1144s1 11451 1146s1 11471 1148s1 11491 1150select sql_cache * from t1; 1151s1 11521 1153flush query cache; 1154reset query cache; 1155flush status; 1156select sql_cache * from t1; 1157s1 11581 1159select sql_cache * from t1 where s1=1; 1160s1 11611 1162call f1(); 1163s1 11641 1165s1 11661 1167s1 11681 1169call f2(); 1170s1 11711 1172s1 11731 1174call f3(); 1175s1 11761 1177s1 11781 1179call f4(); 1180s1 11811 1182s1 11831 1184s1 11851 1186s1 11871 1188s1 11891 1190call f4(); 1191s1 11921 1193s1 11941 1195s1 11961 1197s1 11981 1199s1 12001 1201call f3(); 1202s1 12031 1204s1 12051 1206call f2(); 1207s1 12081 1209s1 12101 1211select sql_cache * from t1 where s1=1; 1212s1 12131 1214insert into t1 values (2); 1215call f1(); 1216s1 12171 12182 1219s1 12201 12212 1222s1 12231 12242 1225select sql_cache * from t1 where s1=1; 1226s1 12271 1228select sql_cache * from t1; 1229s1 12301 12312 1232call f1(); 1233s1 12341 12352 1236s1 12371 12382 1239s1 12401 12412 1242call f3(); 1243s1 12441 12452 1246s1 12471 1248call f3(); 1249s1 12501 12512 1252s1 12531 1254call f1(); 1255s1 12561 12572 1258s1 12591 12602 1261s1 12621 12632 1264drop procedure f1; 1265drop procedure f2; 1266drop procedure f3; 1267drop procedure f4; 1268drop table t1; 1269set GLOBAL query_cache_size=0; 1270End of 4.1 tests 1271SET GLOBAL query_cache_size=102400; 1272create table t1(a int); 1273insert into t1 values(0), (1), (4), (5); 1274select * from t1 where a > 3; 1275a 12764 12775 1278select * from t1 where a > 3; 1279a 12804 12815 1282show status like 'last_query_cost'; 1283Variable_name Value 1284Last_query_cost 0.000000 1285drop table t1; 1286SET GLOBAL query_cache_size=0; 1287set global query_cache_size=1024*1024; 1288flush status; 1289create table t1 (a int); 1290insert into t1 (a) values (1), (2), (3); 1291select * from t1; 1292a 12931 12942 12953 1296show status like 'Qcache_hits'; 1297Variable_name Value 1298Qcache_hits 0 1299select * from t1; 1300a 13011 13022 13033 1304show status like 'Qcache_hits'; 1305Variable_name Value 1306Qcache_hits 1 1307create table t2 like t1; 1308select * from t1; 1309a 13101 13112 13123 1313show status like 'Qcache_hits'; 1314Variable_name Value 1315Qcache_hits 2 1316insert into t2 select * from t1; 1317select * from t1; 1318a 13191 13202 13213 1322show status like 'Qcache_hits'; 1323Variable_name Value 1324Qcache_hits 3 1325drop table t1, t2; 1326create table t1(c1 int); 1327create table t2(c1 int); 1328create table t3(c1 int); 1329create view v1 as select t3.c1 as c1 from t3,t2 where t3.c1 = t2.c1; 1330start transaction; 1331insert into t1(c1) select c1 from v1; 1332drop table t1, t2, t3; 1333drop view v1; 1334create table t1(c1 int); 1335insert into t1 values(1),(10),(100); 1336select * from t1; 1337c1 13381 133910 1340100 1341select * from t1; 1342c1 13431 134410 1345100 1346select * from t1; 1347c1 13481 134910 1350100 1351select * from t1; 1352c1 13531 135410 1355100 1356drop table t1; 1357set global query_cache_size=0; 1358create table t1 (a int); 1359insert into t1 values (1),(2),(3); 1360set GLOBAL query_cache_type=1; 1361set GLOBAL query_cache_limit=10240; 1362set GLOBAL query_cache_min_res_unit=0; 1363set GLOBAL query_cache_size= 102400; 1364reset query cache; 1365set LOCAL default_week_format = 0; 1366select week('2007-01-04'); 1367week('2007-01-04') 13680 1369select week('2007-01-04') from t1; 1370week('2007-01-04') 13710 13720 13730 1374select extract(WEEK FROM '2007-01-04') from t1; 1375extract(WEEK FROM '2007-01-04') 13760 13770 13780 1379set LOCAL default_week_format = 2; 1380select week('2007-01-04'); 1381week('2007-01-04') 138253 1383select week('2007-01-04') from t1; 1384week('2007-01-04') 138553 138653 138753 1388select extract(WEEK FROM '2007-01-04') from t1; 1389extract(WEEK FROM '2007-01-04') 139053 139153 139253 1393reset query cache; 1394set LOCAL div_precision_increment=2; 1395select 1/7; 13961/7 13970.14 1398select 1/7 from t1; 13991/7 14000.14 14010.14 14020.14 1403set LOCAL div_precision_increment=4; 1404select 1/7; 14051/7 14060.1429 1407select 1/7 from t1; 14081/7 14090.1429 14100.1429 14110.1429 1412drop table t1; 1413CREATE TABLE t1 (a VARCHAR(200), b TEXT, FULLTEXT (a,b)); 1414INSERT INTO t1 VALUES('MySQL has now support', 'for full-text search'), 1415('Full-text indexes', 'are called collections'), 1416('Only MyISAM tables','support collections'), 1417('Function MATCH ... AGAINST()','is used to do a search'), 1418('Full-text search in MySQL', 'implements vector space model'); 1419set GLOBAL ft_boolean_syntax='+ -><()~*:""&|'; 1420select *, MATCH(a,b) AGAINST("+called +collections" IN BOOLEAN MODE) as x from t1; 1421a b x 1422MySQL has now support for full-text search 0 1423Full-text indexes are called collections 1 1424Only MyISAM tables support collections 0 1425Function MATCH ... AGAINST() is used to do a search 0 1426Full-text search in MySQL implements vector space model 0 1427set GLOBAL ft_boolean_syntax='- +><()~*:""&|'; 1428select *, MATCH(a,b) AGAINST("+called +collections" IN BOOLEAN MODE) as x from t1; 1429a b x 1430MySQL has now support for full-text search 0 1431Full-text indexes are called collections 0 1432Only MyISAM tables support collections 0 1433Function MATCH ... AGAINST() is used to do a search 0 1434Full-text search in MySQL implements vector space model 0 1435create function change_global() returns integer deterministic 1436begin 1437set global ft_boolean_syntax='+ -><()~*:""&|'; 1438return 1; 1439end| 1440select *, change_global() from t1; 1441a b change_global() 1442MySQL has now support for full-text search 1 1443Full-text indexes are called collections 1 1444Only MyISAM tables support collections 1 1445Function MATCH ... AGAINST() is used to do a search 1 1446Full-text search in MySQL implements vector space model 1 1447drop function change_global; 1448drop table t1; 1449set GLOBAL query_cache_type=default; 1450set GLOBAL query_cache_limit=default; 1451set GLOBAL query_cache_min_res_unit=default; 1452set GLOBAL query_cache_size= default; 1453set GLOBAL query_cache_size=1024000; 1454create table t1 (a char); 1455insert into t1 values ('c'); 1456a 1457drop table t1; 1458set GLOBAL query_cache_size= default; 1459SET GLOBAL query_cache_size=64*1024*1024; 1460CREATE TABLE t1 (id INT); 1461CREATE PROCEDURE proc29856(IN theUPC TEXT) 1462BEGIN 1463SET @stmtStr := ''; 1464SELECT CONCAT("SELECT id FROM t1 WHERE id IN (",theUPC,")") INTO @stmtStr; 1465PREPARE stmt FROM @stmtStr; 1466EXECUTE stmt; 1467END | 1468CALL proc29856('1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24, 146925,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50, 147051,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76, 147177,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101, 1472102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120, 1473121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139, 1474140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158, 1475159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177, 1476178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196, 1477197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215, 1478216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234, 1479235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253, 1480254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272, 1481273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291, 1482292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310, 1483311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329, 1484330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348, 1485349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367, 1486368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386, 1487387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405, 1488406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424, 1489425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443, 1490444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462, 1491463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481, 1492482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500, 1493501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519, 1494520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538, 1495539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557, 1496558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576, 1497577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595, 1498596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614, 1499615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633, 1500634,635,636,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652, 1501653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671, 1502672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690, 1503691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709, 1504710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728, 1505729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,747, 1506748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766, 1507767,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,783,784,785, 1508786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804, 1509805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823, 1510824,825,826,827,828,829,830,831,832,833,834,835,836,837,838,839,840,841,842, 1511843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861, 1512862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880, 1513881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899, 1514900,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,917,918, 1515919,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,937, 1516938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956, 1517957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975, 1518976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,991,992,993,994, 1519995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010, 15201011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025, 15211026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040, 15221041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055, 15231056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070, 15241071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085, 15251086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100, 15261101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115, 15271116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130, 15281131,1132,1133,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144,1145, 15291146,1147,1148,1149,1150,1151,1152,1153,1154,1155,1156,1157,1158,1159,1160, 15301161,1162,1163,1164,1165,1166,1167,1168,1169,1170,1171,1172,1173,1174,1175, 15311176,1177,1178,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190, 15321191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205, 15331206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1220, 15341221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1235, 15351236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1249,1250, 15361251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265, 15371266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280, 15381281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1295, 15391296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310, 15401311,1312,1313,1314,1315,1316,1317,1318,1319,1320,1321,1322,1323,1324,1325, 15411326,1327,1328,1329,1330,1331,1332,1333,1334,1335,1336,1337,1338,1339,1340, 15421341,1342,1343,1344,1345,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355, 15431356,1357,1358,1359,1360,1361,1362,1363,1364,1365,1366,1367,1368,1369,1370, 15441371,1372,1373,1374,1375,1376,1377,1378,1379,1380,1381,1382,1383,1384,1385, 15451386,1387,1388,1389,1390,1391,1392,1393,1394,1395,1396,1397,1398,1399,1400, 15461401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1412,1413,1414,1415, 15471416,1417,1418,1419,1420,1421,1422,1423,1424,1425,1426,1427,1428,1429,1430, 15481431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445, 15491446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460, 15501461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475, 15511476,1477,1478,1479,1480,1481,1482,1483,1484,1485,1486,1487,1488,1489,1490, 15521491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505, 15531506,1507,1508,1509,1510,1511,1512,1513,1514,1515,1516,1517,1518,1519,1520, 15541521,1522,1523,1524,1525,1526,1527,1528,1529,1530,1531,1532,1533,1534,1535, 15551536,1537,1538,1539,1540,1541,1542,1543,1544,1545,1546,1547,1548,1549,1550, 15561551,1552,1553,1554,1555,1556,1557,1558,1559,1560,1561,1562,1563,1564,1565, 15571566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580, 15581581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595, 15591596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610, 15601611,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1622,1623,1624,1625, 15611626,1627,1628,1629,1630,1631,1632,1633,1634,1635,1636,1637,1638,1639,1640, 15621641,1642,1643,1644,1645,1646,1647,1648,1649,1650,1651,1652,1653,1654,1655, 15631656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670, 15641671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685, 15651686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700, 15661701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715, 15671716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730, 15681731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745, 15691746,1747,1748,1749,1750,1751,1752,1753,1754,1755,1756,1757,1758,1759,1760, 15701761,1762,1763,1764,1765,1766,1767,1768,1769,1770,1771,1772,1773,1774,1775, 15711776,1777,1778,1779,1780,1781,1782,1783,1784,1785,1786,1787,1788,1789,1790, 15721791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805, 15731806,1807,1808,1809,1810,1811'); 1574id 1575DROP PROCEDURE proc29856; 1576DROP TABLE t1; 1577SET GLOBAL query_cache_size= default; 1578# 1579# Bug#25132 disabled query cache: Qcache_free_blocks = 1 1580# 1581set global query_cache_size=102400; 1582set global query_cache_size=0; 1583set global query_cache_type=0; 1584show status like 'Qcache_free_blocks'; 1585Variable_name Value 1586Qcache_free_blocks 0 1587Restore default values. 1588drop database if exists db1; 1589drop database if exists db2; 1590set GLOBAL query_cache_size=15*1024*1024; 1591create database db1; 1592use db1; 1593create table t1(c1 int)engine=myisam; 1594insert into t1(c1) values (1); 1595select * from db1.t1 f; 1596c1 15971 1598show status like 'Qcache_queries_in_cache'; 1599Variable_name Value 1600Qcache_queries_in_cache 1 1601create database db2; 1602rename table db1.t1 to db2.t2; 1603drop database db1; 1604show status like 'Qcache_queries_in_cache'; 1605Variable_name Value 1606Qcache_queries_in_cache 0 1607drop database db2; 1608set global query_cache_size=default; 1609drop database if exists db1; 1610drop database if exists db3; 1611set GLOBAL query_cache_size=15*1024*1024; 1612create database db1; 1613create database db3; 1614use db1; 1615create table t1(c1 int) engine=myisam; 1616use db3; 1617create table t1(c1 int) engine=myisam; 1618use db1; 1619insert into t1(c1) values (1); 1620use test; 1621select * from db1.t1; 1622c1 16231 1624select c1+1 from db1.t1; 1625c1+1 16262 1627select * from db3.t1; 1628c1 1629show status like 'Qcache_queries_in_cache'; 1630Variable_name Value 1631Qcache_queries_in_cache 3 1632create database db2; 1633rename table db1.t1 to db2.t2; 1634drop database db1; 1635show status like 'Qcache_queries_in_cache'; 1636Variable_name Value 1637Qcache_queries_in_cache 1 1638drop database db2; 1639drop database db3; 1640set GLOBAL query_cache_type=1; 1641set GLOBAL query_cache_limit=default; 1642set GLOBAL query_cache_min_res_unit=default; 1643set GLOBAL query_cache_size=default; 1644FLUSH STATUS; 1645SET GLOBAL query_cache_size=10*1024*1024; 1646SET @save_concurrent_insert= @@concurrent_insert; 1647SET GLOBAL concurrent_insert= 0; 1648CREATE TABLE t1 (c1 INT NOT NULL) ENGINE=MyISAM; 1649INSERT INTO t1 (c1) VALUES (1), (2); 1650SHOW GLOBAL VARIABLES LIKE 'concurrent_insert'; 1651Variable_name Value 1652concurrent_insert NEVER 1653SHOW STATUS LIKE 'Qcache_hits'; 1654Variable_name Value 1655Qcache_hits 0 1656SELECT * FROM t1; 1657c1 16581 16592 1660SELECT * FROM t1; 1661c1 16621 16632 1664SHOW STATUS LIKE 'Qcache_hits'; 1665Variable_name Value 1666Qcache_hits 1 1667DROP TABLE t1; 1668SET GLOBAL concurrent_insert= @save_concurrent_insert; 1669SET GLOBAL query_cache_size= default; 1670DROP TABLE IF EXISTS t1; 1671FLUSH STATUS; 1672SET GLOBAL query_cache_size=1048576; 1673CREATE TABLE t1 (a INT); 1674INSERT INTO t1 VALUES (1),(2),(3),(4),(5); 1675SHOW STATUS LIKE 'Qcache_queries_in_cache'; 1676Variable_name Value 1677Qcache_queries_in_cache 0 1678SELECT * FROM t1; 1679a 16801 16812 16823 16834 16845 1685BEGIN; 1686SELECT * FROM t1; 1687a 16881 16892 16903 16914 16925 1693COMMIT; 1694SHOW STATUS LIKE 'Qcache_queries_in_cache'; 1695Variable_name Value 1696Qcache_queries_in_cache 2 1697SHOW STATUS LIKE "Qcache_hits"; 1698Variable_name Value 1699Qcache_hits 0 1700SELECT * FROM t1; 1701a 17021 17032 17043 17054 17065 1707BEGIN; 1708SELECT * FROM t1; 1709a 17101 17112 17123 17134 17145 1715COMMIT; 1716SHOW STATUS LIKE "Qcache_hits"; 1717Variable_name Value 1718Qcache_hits 2 1719DROP TABLE t1; 1720SET GLOBAL query_cache_size= default; 1721End of 5.0 tests 1722SET GLOBAL query_cache_size=1024*1024*512; 1723CREATE TABLE t1 (a ENUM('rainbow')); 1724INSERT INTO t1 VALUES (),(),(),(),(); 1725SELECT 1 FROM t1 GROUP BY (SELECT 1 FROM t1 ORDER BY AVG(LAST_INSERT_ID())); 17261 17271 1728DROP TABLE t1; 1729CREATE TABLE t1 (a LONGBLOB); 1730INSERT INTO t1 SET a = 'aaaa'; 1731INSERT INTO t1 SET a = 'aaaa'; 1732SELECT 1 FROM t1 GROUP BY 1733(SELECT LAST_INSERT_ID() FROM t1 ORDER BY MIN(a) ASC LIMIT 1); 17341 17351 1736DROP TABLE t1; 1737SET GLOBAL query_cache_size= default; 1738CREATE TABLE t1( a INT ); 1739SET @v = ( SELECT SQL_CACHE 1 ); 1740ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1 )' at line 1 1741SET @v = ( SELECT SQL_NO_CACHE 1 ); 1742ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1 )' at line 1 1743SELECT a FROM t1 WHERE a IN ( SELECT SQL_CACHE a FROM t1 ); 1744ERROR 42S22: Unknown column 'SQL_CACHE' in 'field list' 1745SELECT a FROM t1 WHERE a IN ( SELECT SQL_NO_CACHE a FROM t1 ); 1746ERROR 42S22: Unknown column 'SQL_NO_CACHE' in 'field list' 1747SELECT ( SELECT SQL_CACHE a FROM t1 ); 1748ERROR 42S22: Unknown column 'SQL_CACHE' in 'field list' 1749SELECT ( SELECT SQL_NO_CACHE a FROM t1 ); 1750ERROR 42S22: Unknown column 'SQL_NO_CACHE' in 'field list' 1751SELECT SQL_CACHE * FROM t1; 1752a 1753SELECT SQL_NO_CACHE * FROM t1; 1754a 1755SELECT * FROM t1 UNION SELECT SQL_CACHE * FROM t1; 1756ERROR 42000: Incorrect usage/placement of 'SQL_CACHE' 1757SELECT * FROM t1 UNION SELECT SQL_NO_CACHE * FROM t1; 1758ERROR 42000: Incorrect usage/placement of 'SQL_NO_CACHE' 1759SELECT * FROM t1 WHERE a IN (SELECT SQL_CACHE a FROM t1); 1760ERROR 42S22: Unknown column 'SQL_CACHE' in 'field list' 1761SELECT * FROM t1 WHERE a IN (SELECT a FROM t1 UNION SELECT SQL_CACHE a FROM t1); 1762ERROR 42S22: Unknown column 'SQL_CACHE' in 'field list' 1763SELECT * FROM t1 UNION SELECT SQL_NO_CACHE * FROM t1; 1764ERROR 42000: Incorrect usage/placement of 'SQL_NO_CACHE' 1765SELECT * FROM t1 WHERE a IN (SELECT SQL_NO_CACHE a FROM t1); 1766ERROR 42S22: Unknown column 'SQL_NO_CACHE' in 'field list' 1767SELECT * FROM t1 WHERE a IN 1768(SELECT a FROM t1 UNION SELECT SQL_NO_CACHE a FROM t1); 1769ERROR 42S22: Unknown column 'SQL_NO_CACHE' in 'field list' 1770SELECT SQL_CACHE SQL_NO_CACHE * FROM t1; 1771ERROR HY000: Incorrect usage of SQL_CACHE and SQL_NO_CACHE 1772SELECT SQL_NO_CACHE SQL_CACHE * FROM t1; 1773ERROR HY000: Incorrect usage of SQL_NO_CACHE and SQL_CACHE 1774SELECT SQL_CACHE * FROM t1 UNION SELECT SQL_CACHE * FROM t1; 1775ERROR 42000: Incorrect usage/placement of 'SQL_CACHE' 1776SELECT SQL_CACHE * FROM t1 UNION SELECT SQL_NO_CACHE * FROM t1; 1777ERROR 42000: Incorrect usage/placement of 'SQL_NO_CACHE' 1778SELECT SQL_NO_CACHE * FROM t1 UNION SELECT SQL_CACHE * FROM t1; 1779ERROR 42000: Incorrect usage/placement of 'SQL_CACHE' 1780SELECT SQL_NO_CACHE * FROM t1 UNION SELECT SQL_NO_CACHE * FROM t1; 1781ERROR 42000: Incorrect usage/placement of 'SQL_NO_CACHE' 1782SELECT SQL_CACHE * FROM t1 WHERE a IN 1783(SELECT SQL_NO_CACHE a FROM t1); 1784ERROR 42S22: Unknown column 'SQL_NO_CACHE' in 'field list' 1785SELECT SQL_CACHE * FROM t1 WHERE a IN 1786(SELECT a FROM t1 UNION SELECT SQL_NO_CACHE a FROM t1); 1787ERROR 42S22: Unknown column 'SQL_NO_CACHE' in 'field list' 1788DROP TABLE t1; 1789End of 5.1 tests 1790# 1791# Bug#51336 Assert in reload_acl_and_cache during RESET QUERY CACHE 1792# 1793DROP TABLE IF EXISTS t1; 1794CREATE TABLE t1(id INT); 1795START TRANSACTION; 1796SELECT * FROM t1; 1797id 1798RESET QUERY CACHE; 1799COMMIT; 1800DROP TABLE t1; 1801# 1802# Bug#12977203: SERVER CRASH ON A DERIVED TABLE WITH QUERY CACHE ENABLED 1803# 1804SET @qc= @@query_cache_size; 1805SET GLOBAL query_cache_size=1355776; 1806CREATE TABLE t1 (f1 blob); 1807SELECT COUNT(*) FROM (SELECT * FROM t1 ) tt; 1808COUNT(*) 18090 1810DROP TABLE t1; 1811SET GLOBAL query_cache_size= @qc; 1812# 1813#BUG 18710853: QUERY CACHE NOT INVALIDATED ON CASCADE DELETE IF DB NAME HAS 1814# SPECIAL SYMBOLS 1815SET @query_cache_size.saved = @@query_cache_size; 1816SET GLOBAL query_cache_size = 1024*1024; 1817CREATE DATABASE `db-db`; 1818CREATE TABLE `db-db`.`t$1` (fld1 INT PRIMARY KEY) ENGINE=InnoDB; 1819CREATE TABLE `db-db`.`t$2` (fld1 INT PRIMARY KEY, fld2 INT, 1820CONSTRAINT t2_fk FOREIGN KEY (fld2) REFERENCES `db-db`.`t$1` (fld1) ON 1821DELETE CASCADE) ENGINE=InnoDB; 1822CREATE TABLE `db-db`.`t$3` (fld1 INT PRIMARY KEY, fld2 INT, 1823CONSTRAINT t3_fk FOREIGN KEY (fld2) REFERENCES `db-db`.`t$1` (fld1) ON 1824UPDATE CASCADE) ENGINE=InnoDB; 1825INSERT INTO `db-db`.`t$1` VALUES (100); 1826INSERT INTO `db-db`.`t$1` VALUES (300); 1827INSERT INTO `db-db`.`t$2` VALUES (1, 100); 1828INSERT INTO `db-db`.`t$3` VALUES (2, 300); 1829SELECT * FROM `db-db`.`t$2`; 1830fld1 fld2 18311 100 1832SELECT * FROM `db-db`.`t$3`; 1833fld1 fld2 18342 300 1835DELETE FROM `db-db`.`t$1` WHERE fld1= 100; 1836UPDATE `db-db`.`t$1` SET fld1= 200 WHERE fld1= 300; 1837#After fix the number of the records returned with the 1838#query cache and without the query cache are the same. 1839SELECT * FROM `db-db`.`t$2`; 1840fld1 fld2 1841SELECT SQL_NO_CACHE * FROM `db-db`.`t$2`; 1842fld1 fld2 1843SELECT * FROM `db-db`.`t$3`; 1844fld1 fld2 18452 200 1846SELECT SQL_NO_CACHE * FROM `db-db`.`t$3`; 1847fld1 fld2 18482 200 1849#Test case added for code coverage, invalidation 1850#triggered at the SQL layer. 1851CREATE TABLE `db-db`.`t$4` (fld1 INT PRIMARY KEY) ENGINE=InnoDB; 1852INSERT INTO `db-db`.`t$4` VALUES (100); 1853SELECT * FROM `db-db`.`t$4`; 1854fld1 1855100 1856INSERT INTO `db-db`.`t$4` VALUES (200); 1857SELECT * FROM `db-db`.`t$4`; 1858fld1 1859100 1860200 1861SELECT SQL_NO_CACHE * FROM `db-db`.`t$4`; 1862fld1 1863100 1864200 1865#cleanup 1866DROP DATABASE `db-db`; 1867# 1868#Bug #25943038: QUERY WITH DERIVED TABLE IS CACHED IN MVCC SCENARIO 1869# 1870use test; 1871CREATE TABLE t1(i1 INT, i2 INT, v3 VARCHAR(20)) ENGINE=INNODB; 1872SET @qc= @@query_cache_size; 1873SET GLOBAL query_cache_size=16777216; 1874SELECT @@query_cache_size, @@query_cache_type; 1875@@query_cache_size @@query_cache_type 187616777216 ON 1877connection con1; 1878START TRANSACTION; 1879INSERT INTO t1 VALUES(1,1,'a'),(2,1,'b'),(3,2,'c'),(4,2,'d'); 1880connection con2; 1881SHOW GLOBAL STATUS LIKE 'qcache%cache%'; 1882Variable_name Value 1883Qcache_not_cached 7 1884Qcache_queries_in_cache 0 1885SELECT * FROM t1; 1886i1 i2 v3 1887SELECT * FROM (SELECT i2,SUM(i1) FROM t1 GROUP BY i2) b; 1888i2 SUM(i1) 1889SHOW GLOBAL STATUS LIKE 'qcache%cache%'; 1890Variable_name Value 1891Qcache_not_cached 9 1892Qcache_queries_in_cache 0 1893connection con1; 1894SHOW GLOBAL STATUS LIKE 'qcache%cache%'; 1895Variable_name Value 1896Qcache_not_cached 9 1897Qcache_queries_in_cache 0 1898commit; 1899connection con2; 1900SHOW GLOBAL STATUS LIKE 'qcache%cache%'; 1901Variable_name Value 1902Qcache_not_cached 9 1903Qcache_queries_in_cache 0 1904SELECT * FROM t1; 1905i1 i2 v3 19061 1 a 19072 1 b 19083 2 c 19094 2 d 1910SELECT * FROM (SELECT * FROM t1) a; 1911i1 i2 v3 19121 1 a 19132 1 b 19143 2 c 19154 2 d 1916SELECT * FROM (SELECT i2,SUM(i1) FROM t1 GROUP BY i2) b; 1917i2 SUM(i1) 19181 3 19192 7 1920disconnect con1; 1921disconnect con2; 1922connection default; 1923DROP TABLE t1; 1924SET GLOBAL query_cache_size = @query_cache_size.saved; 1925# 1926