This file is indexed.

/usr/lib/mysql-testsuite/t/implicit_commit.test is in mysql-testsuite-5.6 5.6.16-1~exp1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  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
  51
  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
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
source include/have_innodb.inc;
source include/not_embedded.inc;
source include/have_profiling.inc;

SET GLOBAL EVENT_SCHEDULER = OFF;
SET BINLOG_FORMAT = STATEMENT;

LET $OLD_DB= `SELECT DATABASE()`;

CREATE DATABASE db1;
USE db1;
CREATE TABLE t1 (a INT, KEY a(a)) ENGINE=INNODB;
INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
CREATE TABLE t3 (a INT) ENGINE=MyISAM;
INSERT INTO t3 SELECT * FROM t1;
CREATE TABLE trans (a INT) ENGINE=INNODB;

DELIMITER |;

CREATE PROCEDURE test_if_commit()
BEGIN
  ROLLBACK;
  SELECT IF (COUNT(*) > 0, "YES", "NO") AS "IMPLICIT COMMIT" FROM trans;
  DELETE FROM trans;
  COMMIT;
END|

DELIMITER ;|

SET AUTOCOMMIT = FALSE;

--echo #
--echo # SQLCOM_SELECT
--echo #

let $statement=
  select 1 as res from t1 where (1) in (select * from t1);
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_CREATE_TABLE LIKE
--echo #

let $statement=
  create table t2 like t1;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_CREATE
--echo #

let $statement=
  show create table t2;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_DROP_TABLE
--echo #

let $statement=
  drop table t2;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_CREATE_TABLE TEMPORARY
--echo #

let $statement=
  create temporary table t2 as select * from t1;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_DROP_TABLE TEMPORARY
--echo #

let $statement=
  drop temporary table t2;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_CREATE_TABLE
--echo #

let $statement=
  create table t2 as select * from t1;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_UPDATE
--echo #

let $statement=
  update t2 set a=a+1 where (1) in (select * from t1);
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_INSERT
--echo #

let $statement=
  insert into t2 set a=((1) in (select * from t1));
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_INSERT_SELECT
--echo #

let $statement=
  insert into t2 select * from t1;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_REPLACE
--echo #

let $statement=
  replace t2 set a=((1) in (select * from t1));
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_REPLACE_SELECT
--echo #

let $statement=
  replace t2 select * from t1;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_DELETE
--echo #

let $statement=
  delete from t2 where (1) in (select * from t1);
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_DELETE_MULTI
--echo #

let $statement=
  delete t2, t3 from t2, t3 where (1) in (select * from t1);
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_UPDATE_MULTI
--echo #

select * from t2;
let $statement=
  update t2, t3 set t3.a=t2.a, t2.a=null where (1) in (select * from t1);
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_LOAD
--echo #

create table t4 (a varchar(100));

let $statement=
  load data infile '../../std_data/words.dat' into table t4;
source include/implicit_commit_helper.inc;

drop table t4;

--echo #
--echo # SQLCOM_SHOW_DATABASES
--echo #

let $statement=
  show databases where (1) in (select * from t1);
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_TABLES
--echo #

let $statement=
  show tables where (1) in (select * from t1);
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_FIELDS
--echo #

let $statement=
  show fields from t1 where (1) in (select * from t1);
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_KEYS
--echo #

let $statement=
  show keys from t1 where (1) in (select * from t1);
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_VARIABLES
--echo #

let $statement=
  show variables where (1) in (select * from t1);
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_STATUS
--echo #

let $statement=
  show status where (1) in (select * from t1);
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_ENGINE_MUTEX
--echo #

let $statement=
  show engine all mutex;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_PROCESSLIST
--echo #

let $statement=
  show processlist;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_ENGINE_LOGS
--echo #

let $statement=
  show engine all logs;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_ENGINE_STATUS
--echo #

let $statement=
  show engine all status;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_CHARSETS
--echo #

let $statement=
  show charset where (1) in (select * from t1);
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_COLLATIONS
--echo #

let $statement=
  show collation where (1) in (select * from t1);
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_TABLE_STATUS
--echo #

let $statement=
  show table status where (1) in (select * from t1);
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_TRIGGERS
--echo #

let $statement=
  show triggers where (1) in (select * from t1);
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_OPEN_TABLES
--echo #

let $statement=
  show open tables where (1) in (select * from t1);
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_STATUS_PROC
--echo #

let $statement=
  show procedure status where (1) in (select * from t1);
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_STATUS_FUNC
--echo #

let $statement=
  show function status where (1) in (select * from t1);
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SET_OPTION
--echo #

let $statement=
  set @a=((1) in (select * from t1));
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_DO
--echo #

let $statement=
  do ((1) in (select * from t1));
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_CALL
--echo #

create procedure p1(a int) begin end;

let $statement=
  call p1((1) in (select * from t1));
source include/implicit_commit_helper.inc;

drop procedure p1;

--echo #
--echo # SQLCOM_CREATE_VIEW
--echo #

let $statement=
  create view v1 as select * from t1;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_ALTER_VIEW
--echo #

let $statement=
  alter view v1 as select 2;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_DROP_VIEW
--echo #

let $statement=
  drop view v1;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_CREATE_INDEX
--echo #

let $statement=
  create index idx1 on t1(a);
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_DROP_INDEX
--echo #

let $statement=
  drop index idx1 on t1;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_ALTER_TABLE
--echo #

let $statement=
  alter table t1 add column b int;
source include/implicit_commit_helper.inc;

let $statement=
  alter table t1 change b c int;
source include/implicit_commit_helper.inc;

let $statement=
  alter table t1 drop column c;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_ALTER_TABLE TEMPORARY
--echo #

create temporary table t4 (a int);

let $statement=
  alter table t1 add column b int;
source include/implicit_commit_helper.inc;

let $statement=
  alter table t1 change b c int;
source include/implicit_commit_helper.inc;

let $statement=
  alter table t1 drop column c;
source include/implicit_commit_helper.inc;

drop table t4;

--echo #
--echo # SQLCOM_TRUNCATE
--echo #

insert into t2 select * from t1;
let $statement=
  truncate table t2;
source include/implicit_commit_helper.inc;
insert into t2 select * from t1;

--echo #
--echo # SQLCOM_TRUNCATE TEMPORARY
--echo #

create temporary table t4 as select * from t1;
let $statement=
  truncate table t4;
source include/implicit_commit_helper.inc;
drop temporary table t4;

--echo #
--echo # SQLCOM_SHOW_MASTER_STAT
--echo #

let $statement=
  show master status;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_SLAVE_STAT
--echo #

let $statement=
  show slave status;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_GRANT
--echo #

let $statement=
  grant all on test.t1 to mysqltest_2@localhost with grant option;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_REVOKE
--echo #
let $statement=
  revoke select on test.t1 from mysqltest_2@localhost;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_REVOKE_ALL
--echo #

let $statement=
  revoke all on test.t1 from mysqltest_2@localhost;
source include/implicit_commit_helper.inc;

drop user mysqltest_2@localhost;

--echo #
--echo # SQLCOM_SHOW_GRANTS
--echo #

let $statement=
  show grants;
source include/implicit_commit_helper.inc;

let $statement=
  show grants for current_user();
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_LOCK_TABLES
--echo #

let $statement=
  lock tables t1 write, trans write;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_UNLOCK_TABLES
--echo #

let $statement=
  unlock tables;
source include/implicit_commit_helper.inc;

#
# Missing test for lock tables transactional.
#

--echo #
--echo # SQLCOM_CREATE_DB
--echo #

let $statement=
  create database db2;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_CHANGE_DB
--echo #

create table db2.t1 (a int);
insert into db2.t1 values (1);
commit;

let $statement=
  use db2;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_CREATE_DB
--echo #

let $statement=
  show create database db2;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_ALTER_DB
--echo #

#let $statement=
#  alter database db2 character set koi8r;
#source include/implicit_commit_helper.inc;

#let $statement=
#  alter database db2 collate cp1251_general_cs;
#source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_ALTER_DB_UPGRADE
--echo #

#let $statement=
#  alter database `#mysql50#db3` upgrade data directory name;
#source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_DROP_DB
--echo #

use db1;

let $statement=
  drop database db2;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_REPAIR
--echo #

let $statement=
  repair table t2;
source include/implicit_commit_helper.inc;

let $statement=
  repair table t2 use_frm;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_OPTIMIZE
--echo #

let $statement=
  optimize table t1;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_CHECK
--echo #

let $statement=
  check table t1;
source include/implicit_commit_helper.inc;

let $statement=
  check table t1 extended;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_ASSIGN_TO_KEYCACHE
--echo #

set global keycache.key_buffer_size=128*1024;

let $statement=
  cache index t3 in keycache;
source include/implicit_commit_helper.inc;

set global keycache.key_buffer_size=0;

--echo #
--echo # SQLCOM_PRELOAD_KEYS
--echo #

let $statement=
  load index into cache t3;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_FLUSH
--echo #

let $statement=
  flush local privileges;
source include/implicit_commit_helper.inc;

let $statement=
  flush privileges;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_KILL
--echo #

--echo #
--echo # SQLCOM_ANALYZE
--echo #

let $statement=
  analyze table t1;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_ROLLBACK
--echo #

let $statement=
  rollback;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_ROLLBACK_TO_SAVEPOINT
--echo #


--echo #
--echo # SQLCOM_COMMIT
--echo #

let $statement=
  commit;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SAVEPOINT
--echo #

let $statement=
  savepoint sp1;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_RELEASE_SAVEPOINT
--echo #

--echo #
--echo # SQLCOM_SLAVE_START
--echo #

--echo #
--echo # SQLCOM_SLAVE_STOP
--echo #

--echo #
--echo # SQLCOM_BEGIN
--echo #

let $statement=
  begin;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_CHANGE_MASTER
--echo #

--echo #
--echo # SQLCOM_RENAME_TABLE
--echo #

let $statement=
  rename table t3 to t4;
source include/implicit_commit_helper.inc;

let $statement=
  rename table t4 to t3;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_RESET
--echo #

let $statement=
  reset query cache;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_PURGE
--echo #

--echo #
--echo # SQLCOM_PURGE_BEFORE
--echo #

--echo #
--echo # SQLCOM_SHOW_BINLOGS
--echo #

--echo #
--echo # SQLCOM_HA_OPEN
--echo #

let $statement=
  handler t1 open as ha1;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_HA_READ
--echo #

let $statement=
  handler ha1 read a first;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_HA_CLOSE
--echo #

let $statement=
  handler ha1 close;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_SLAVE_HOSTS
--echo #

let $statement=
  show slave hosts;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_BINLOG_EVENTS
--echo #

let $statement=
  show binlog events;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_NEW_MASTER
--echo #

--echo #
--echo # SQLCOM_SHOW_WARNS
--echo #

let $statement=
  show warnings;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_EMPTY_QUERY
--echo #

--echo #
--echo # SQLCOM_SHOW_ERRORS
--echo #

let $statement=
  show errors;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_STORAGE_ENGINES
--echo #

let $statement=
  show engines;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_PRIVILEGES
--echo #

let $statement=
  show privileges;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_HELP
--echo #

let $statement=
  help 'foo';
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_CREATE_USER
--echo #

let $statement=
  create user trxusr1;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_RENAME_USER
--echo #

let $statement=
  rename user 'trxusr1' to 'trxusr2';
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_DROP_USER
--echo #

let $statement=
  drop user trxusr2;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_CHECKSUM
--echo #

let $statement=
  checksum table t1;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_CREATE_PROCEDURE
--echo #

let $statement=
  create procedure p1(a int) begin end;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_ALTER_PROCEDURE
--echo #

let $statement=
  alter procedure p1 comment 'foobar';
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_CREATE_PROC
--echo #

let $statement=
  show create procedure p1;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_STATUS_PROC
--echo #

let $statement=
  show procedure status;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_PROC_CODE
--echo #

#
# Available only on servers with debugging support.
#

--disable_abort_on_error
let $statement=
  show procedure code p1;
source include/implicit_commit_helper.inc;
--enable_abort_on_error

--echo #
--echo # SQLCOM_DROP_PROCEDURE
--echo #

let $statement=
  drop procedure p1;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_CREATE_FUNCTION
--echo #

--echo #
--echo # SQLCOM_DROP_FUNCTION
--echo #

--echo #
--echo # SQLCOM_CREATE_SPFUNCTION
--echo #

let $statement=
  create function f1() returns int return 69;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_ALTER_FUNCTION
--echo #

let $statement=
  alter function f1 comment 'comment';
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_CREATE_FUNC
--echo #

let $statement=
  show create function f1;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_STATUS_FUNC
--echo #

let $statement=
  show function status like '%f%';
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_FUNC_CODE
--echo #

#
# Available only on servers with debugging support.
#

--disable_abort_on_error
let $statement=
  show function code f1;
source include/implicit_commit_helper.inc;
--enable_abort_on_error

--echo #
--echo # SQLCOM_PREPARE
--echo #

let $statement=
  prepare stmt1 from "insert into t1 values (5)";
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_EXECUTE
--echo #

let $statement=
  execute stmt1;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_DEALLOCATE_PREPARE
--echo #

let $statement=
  deallocate prepare stmt1;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_CREATE_TRIGGER
--echo #

let $statement=
  create trigger trg1 before insert on t1 for each row set @a:=1;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_CREATE_TRIGGER
--echo #

let $statement=
  show create trigger trg1;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_DROP_TRIGGER
--echo #

let $statement=
  drop trigger trg1;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_XA_START
--echo #

--echo #
--echo # SQLCOM_XA_END
--echo #

--echo #
--echo # SQLCOM_XA_PREPARE
--echo #

--echo #
--echo # SQLCOM_XA_COMMIT
--echo #

--echo #
--echo # SQLCOM_XA_ROLLBACK
--echo #

--echo #
--echo # SQLCOM_XA_RECOVER
--echo #

--echo #
--echo # SQLCOM_ALTER_TABLESPACE
--echo #

--echo #
--echo # SQLCOM_INSTALL_PLUGIN
--echo #

--echo #
--echo # SQLCOM_SHOW_PLUGINS
--echo #

--echo #
--echo # SQLCOM_UNINSTALL_PLUGIN
--echo #

--echo #
--echo # SQLCOM_BINLOG_BASE64_EVENT
--echo #

--echo #
--echo # SQLCOM_CREATE_SERVER
--echo #

--echo #
--echo # SQLCOM_ALTER_SERVER
--echo #

--echo #
--echo # SQLCOM_DROP_SERVER
--echo #

--echo #
--echo # SQLCOM_CREATE_EVENT
--echo #

let $statement=
  create event ev1 on schedule every 1 second do insert into t1 values (6);
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_ALTER_EVENT
--echo #

let $statement=
  alter event ev1 rename to ev2 disable;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_CREATE_EVENT
--echo #

let $statement=
  show create event ev2;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_EVENTS
--echo #

let $statement=
  show events;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_DROP_EVENT
--echo #

let $statement=
  drop event ev2;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_BACKUP
--echo #

#create database backup_db;
#
#let $statement=
#  backup database db1 to 'backup_db1.ba';
#source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_ARCHIVE
--echo #

#
# --error ER_NOT_ALLOWED_COMMAND
#
#let $statement=
#  show backup 'backup_db1.ba';
#source include/implicit_commit_helper.inc;
#

--echo #
--echo # SQLCOM_RESTORE
--echo #

#let $statement=
#  restore from 'backup_db1.ba';
#source include/implicit_commit_helper.inc;

#--remove_file $MYSQLTEST_VARDIR/master-data/backup_db1.ba
#
#drop database backup_db;

--echo #
--echo # SQLCOM_BACKUP_TEST
--echo #

# BACKUP_TEST

--echo #
--echo # SQLCOM_SHOW_PROFILE
--echo #

let $statement=
  show profile memory;
source include/implicit_commit_helper.inc;

--echo #
--echo # SQLCOM_SHOW_PROFILES
--echo #

let $statement=
  show profiles;
source include/implicit_commit_helper.inc;

DROP TABLE t1;
DROP TABLE t2;
DROP TABLE t3;
eval USE $OLD_DB;
DROP DATABASE db1;

--echo End of tests