~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/include/mix1.inc

  • Committer: Brian Aker
  • Date: 2010-02-07 01:33:54 UTC
  • Revision ID: brian@gaz-20100207013354-d2pg1n68u5c09pgo
Remove giant include header to its own file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
# BUG#16798: Uninitialized row buffer reads in ref-or-null optimizer
36
36
# (repeatable only w/innodb).
37
37
create table t1 (
38
 
  c_id int(11) not null default '0',
39
 
  org_id int(11) default null,
 
38
  c_id int not null default '0',
 
39
  org_id int default null,
40
40
  unique key contacts$c_id (c_id),
41
41
  key contacts$org_id (org_id)
42
42
);
46
46
  (246,3),(253,3),(269,3),(285,3),(291,3),(293,3),(131,4),(230,4),(231,4);
47
47
 
48
48
create table t2 (
49
 
  slai_id int(11) not null default '0',
50
 
  owner_tbl int(11) default null,
51
 
  owner_id int(11) default null,
52
 
  sla_id int(11) default null,
53
 
  inc_web int(11) default null,
54
 
  inc_email int(11) default null,
55
 
  inc_chat int(11) default null,
56
 
  inc_csr int(11) default null,
57
 
  inc_total int(11) default null,
58
 
  time_billed int(11) default null,
 
49
  slai_id int not null default '0',
 
50
  owner_tbl int default null,
 
51
  owner_id int default null,
 
52
  sla_id int default null,
 
53
  inc_web int default null,
 
54
  inc_email int default null,
 
55
  inc_chat int default null,
 
56
  inc_csr int default null,
 
57
  inc_total int default null,
 
58
  time_billed int default null,
59
59
  activedate timestamp null default null,
60
60
  expiredate timestamp null default null,
61
 
  state int(11) default null,
62
 
  sla_set int(11) default null,
 
61
  state int default null,
 
62
  sla_set int default null,
63
63
  unique key t2$slai_id (slai_id),
64
64
  key t2$owner_id (owner_id),
65
65
  key t2$sla_id (sla_id)
109
109
 
110
110
# demonstrate a problem when a must-use-sort table flag
111
111
# (sort_by_table=1) is being neglected.
112
 
SELECT STRAIGHT_JOIN SQL_NO_CACHE t1.b, t1.a FROM t1, t3, t2 WHERE
 
112
SELECT STRAIGHT_JOIN t1.b, t1.a FROM t1, t3, t2 WHERE
113
113
  t3.a = t2.a AND t2.b = t1.a AND t3.b = 1 AND t3.c IN (1, 2)
114
114
  ORDER BY t1.b LIMIT 2;
115
115
 
116
116
# demonstrate the problem described in the bug report
117
 
SELECT STRAIGHT_JOIN SQL_NO_CACHE t1.b, t1.a FROM t1, t3, t2 WHERE
 
117
SELECT STRAIGHT_JOIN t1.b, t1.a FROM t1, t3, t2 WHERE
118
118
  t3.a = t2.a AND t2.b = t1.a AND t3.b = 1 AND t3.c IN (1, 2)
119
119
  ORDER BY t1.b LIMIT 5;
120
120
DROP TABLE t1, t2, t3;
152
152
#
153
153
 
154
154
CREATE TABLE t1(c1 TEXT, UNIQUE (c1(1)), cnt INT DEFAULT 1)
155
 
  ENGINE=INNODB CHARACTER SET UTF8;
 
155
  ENGINE=INNODB;
156
156
INSERT INTO t1 (c1) VALUES ('1a');
157
157
SELECT * FROM t1;
158
158
INSERT INTO t1 (c1) VALUES ('1b') ON DUPLICATE KEY UPDATE cnt=cnt+1;
160
160
DROP TABLE t1;
161
161
 
162
162
CREATE TABLE t1(c1 VARCHAR(2), UNIQUE (c1(1)), cnt INT DEFAULT 1)
163
 
  ENGINE=INNODB CHARACTER SET UTF8;
 
163
  ENGINE=INNODB;
164
164
INSERT INTO t1 (c1) VALUES ('1a');
165
165
SELECT * FROM t1;
166
166
INSERT INTO t1 (c1) VALUES ('1b') ON DUPLICATE KEY UPDATE cnt=cnt+1;
168
168
DROP TABLE t1;
169
169
 
170
170
CREATE TABLE t1(c1 CHAR(2), UNIQUE (c1(1)), cnt INT DEFAULT 1)
171
 
  ENGINE=INNODB CHARACTER SET UTF8;
 
171
  ENGINE=INNODB;
172
172
INSERT INTO t1 (c1) VALUES ('1a');
173
173
SELECT * FROM t1;
174
174
INSERT INTO t1 (c1) VALUES ('1b') ON DUPLICATE KEY UPDATE cnt=cnt+1;
182
182
CREATE TABLE t1 (
183
183
  a1 decimal(10,0) DEFAULT NULL,
184
184
  a2 blob,
185
 
  a3 time DEFAULT NULL,
186
185
  a4 blob,
187
186
  a5 char(175) DEFAULT NULL,
188
 
  a6 timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
189
 
  a7 tinyblob,
 
187
  a6 timestamp NOT NULL DEFAULT NOW(),
 
188
  a7 blob,
190
189
  INDEX idx (a6,a7(239),a5)
191
190
) ENGINE=InnoDB;
192
191
 
205
204
#
206
205
 
207
206
--disable_warnings
208
 
eval create table t1m (a int) engine = $other_engine_type;
 
207
eval create temporary table t1m (a int) engine = $other_engine_type;
209
208
create table t1i (a int);
210
 
eval create table t2m (a int) engine = $other_engine_type;
 
209
eval create temporary table t2m (a int) engine = $other_engine_type;
211
210
create table t2i (a int);
212
211
--enable_warnings
213
212
insert into t2m values (5);
240
239
# (was part of group_min_max.test)
241
240
#
242
241
 
243
 
eval create table t1 (
 
242
eval create TEMPORARY table t1 (
244
243
  a1 char(64), a2 char(64), b char(16), c char(16) not null, d char(16), dummy char(64) default ' '
245
244
) ENGINE = $other_engine_type;
246
245
 
363
362
# Test for bug #17164: ORed FALSE blocked conversion of outer join into join
364
363
#
365
364
 
366
 
CREATE TABLE t1 (id int(11) NOT NULL PRIMARY KEY, name varchar(20),
 
365
CREATE TABLE t1 (id int NOT NULL PRIMARY KEY, name varchar(20),
367
366
                 INDEX (name));
368
 
CREATE TABLE t2 (id int(11) NOT NULL PRIMARY KEY, fkey int(11));
369
 
# CREATE TABLE t2 (id int(11) NOT NULL PRIMARY KEY, fkey int(11),
 
367
CREATE TABLE t2 (id int NOT NULL PRIMARY KEY, fkey int);
 
368
# CREATE TABLE t2 (id int NOT NULL PRIMARY KEY, fkey int,
370
369
#                  FOREIGN KEY (fkey) REFERENCES t2(id));
371
370
if ($test_foreign_keys)
372
371
{
393
392
  id int NOT NULL,
394
393
  name varchar(20) NOT NULL,
395
394
  dept varchar(20) NOT NULL,
396
 
  age tinyint(3) unsigned NOT NULL,
 
395
  age int NOT NULL,
397
396
  PRIMARY KEY (id),
398
397
  INDEX (name,dept)
399
398
) ENGINE=InnoDB;
422
421
drop table if exists `test`;
423
422
CREATE TABLE `test` (`test1` varchar(3) NOT NULL,
424
423
  `test2` varchar(4) NOT NULL,PRIMARY KEY  (`test1`))
425
 
  ENGINE=InnoDB DEFAULT CHARSET=latin1;
 
424
  ENGINE=InnoDB;
426
425
INSERT INTO `test` (`test1`, `test2`) VALUES ('tes', '5678');
427
426
disconnect con1;
428
427
connect (con2,localhost,root,,);
483
482
 
484
483
drop table t1;
485
484
 
486
 
#
487
 
# Bug #28189: optimizer erroniously prefers ref access to range access 
488
 
#             for an InnoDB table
489
 
#
490
 
 
491
 
CREATE TABLE t1(
492
 
  id int AUTO_INCREMENT PRIMARY KEY,
493
 
  stat_id int NOT NULL,
494
 
  acct_id int DEFAULT NULL,
495
 
  INDEX idx1 (stat_id, acct_id),
496
 
  INDEX idx2 (acct_id)
497
 
) ENGINE=MyISAM;
498
 
 
499
 
CREATE TABLE t2(
500
 
  id int AUTO_INCREMENT PRIMARY KEY,
501
 
  stat_id int NOT NULL,
502
 
  acct_id int DEFAULT NULL,
503
 
  INDEX idx1 (stat_id, acct_id),
504
 
  INDEX idx2 (acct_id)
505
 
) ENGINE=InnoDB;
506
 
 
507
 
INSERT INTO t1(stat_id,acct_id) VALUES
508
 
  (1,759), (2,831), (3,785), (4,854), (1,921),
509
 
  (1,553), (2,589), (3,743), (2,827), (2,545),
510
 
  (4,779), (4,783), (1,597), (1,785), (4,832),
511
 
  (1,741), (1,833), (3,788), (2,973), (1,907);
512
 
 
513
 
INSERT INTO t1(stat_id,acct_id) SELECT stat_id, mod(id+100000, acct_id) FROM t1;
514
 
INSERT INTO t1(stat_id,acct_id) SELECT stat_id, mod(id+100000, acct_id) FROM t1;
515
 
INSERT INTO t1(stat_id,acct_id) SELECT stat_id, mod(id+100000, acct_id) FROM t1;
516
 
INSERT INTO t1(stat_id,acct_id) SELECT stat_id, mod(id+100000, acct_id) FROM t1;
517
 
INSERT INTO t1(stat_id,acct_id) SELECT stat_id, mod(id+100000, acct_id) FROM t1;
518
 
INSERT INTO t1(stat_id,acct_id) SELECT stat_id, mod(id+100000, acct_id) FROM t1;
519
 
INSERT INTO t1(stat_id,acct_id) SELECT stat_id, mod(id+100000, acct_id) FROM t1;
520
 
INSERT INTO t1(stat_id,acct_id) SELECT stat_id, mod(id+100000, acct_id) FROM t1;
521
 
INSERT INTO t1(stat_id,acct_id) SELECT stat_id, mod(id+100000, acct_id) FROM t1;
522
 
INSERT INTO t1(stat_id,acct_id) SELECT stat_id, mod(id+100000, acct_id) FROM t1;
523
 
INSERT INTO t1(stat_id,acct_id) SELECT stat_id, mod(id+100000, acct_id) FROM t1;
524
 
UPDATE t1 SET acct_id=785 
525
 
  WHERE MOD(stat_id,2)=0 AND MOD(id,stat_id)=MOD(acct_id,stat_id);
526
 
OPTIMIZE TABLE t1;
527
 
 
528
 
SELECT COUNT(*) FROM t1;
529
 
SELECT COUNT(*) FROM t1 WHERE acct_id=785;
530
 
 
531
 
EXPLAIN SELECT COUNT(*) FROM t1 WHERE stat_id IN (1,3) AND acct_id=785; 
532
 
 
533
 
INSERT INTO t2 SELECT * FROM t1;
534
 
OPTIMIZE TABLE t2;
535
 
 
536
 
EXPLAIN SELECT COUNT(*) FROM t2 WHERE stat_id IN (1,3) AND acct_id=785;
537
 
 
538
 
DROP TABLE t1,t2; 
539
 
 
 
485
# Test needs to be rewritten to not use divide by zero
 
486
##
 
487
## Bug #28189: optimizer erroniously prefers ref access to range access 
 
488
##             for an InnoDB table
 
489
##
 
490
#
 
491
#CREATE TABLE t1(
 
492
#  id int AUTO_INCREMENT PRIMARY KEY,
 
493
#  stat_id int NOT NULL,
 
494
#  acct_id int DEFAULT NULL,
 
495
#  INDEX idx1 (stat_id, acct_id),
 
496
#  INDEX idx2 (acct_id)
 
497
#) ENGINE=MyISAM;
 
498
#
 
499
#CREATE TABLE t2(
 
500
#  id int AUTO_INCREMENT PRIMARY KEY,
 
501
#  stat_id int NOT NULL,
 
502
#  acct_id int DEFAULT NULL,
 
503
#  INDEX idx1 (stat_id, acct_id),
 
504
#  INDEX idx2 (acct_id)
 
505
#) ENGINE=InnoDB;
 
506
#
 
507
#INSERT INTO t1(stat_id,acct_id) VALUES
 
508
#  (1,759), (2,831), (3,785), (4,854), (1,921),
 
509
#  (1,553), (2,589), (3,743), (2,827), (2,545),
 
510
#  (4,779), (4,783), (1,597), (1,785), (4,832),
 
511
#  (1,741), (1,833), (3,788), (2,973), (1,907);
 
512
#
 
513
#INSERT INTO t1(stat_id,acct_id) SELECT stat_id, mod(id+100000, acct_id) FROM t1;
 
514
#INSERT INTO t1(stat_id,acct_id) SELECT stat_id, mod(id+100000, acct_id) FROM t1;
 
515
#INSERT INTO t1(stat_id,acct_id) SELECT stat_id, mod(id+100000, acct_id) FROM t1;
 
516
#INSERT INTO t1(stat_id,acct_id) SELECT stat_id, mod(id+100000, acct_id) FROM t1;
 
517
#INSERT INTO t1(stat_id,acct_id) SELECT stat_id, mod(id+100000, acct_id) FROM t1;
 
518
#INSERT INTO t1(stat_id,acct_id) SELECT stat_id, mod(id+100000, acct_id) FROM t1;
 
519
#INSERT INTO t1(stat_id,acct_id) SELECT stat_id, mod(id+100000, acct_id) FROM t1;
 
520
#INSERT INTO t1(stat_id,acct_id) SELECT stat_id, mod(id+100000, acct_id) FROM t1;
 
521
#INSERT INTO t1(stat_id,acct_id) SELECT stat_id, mod(id+100000, acct_id) FROM t1;
 
522
#INSERT INTO t1(stat_id,acct_id) SELECT stat_id, mod(id+100000, acct_id) FROM t1;
 
523
#INSERT INTO t1(stat_id,acct_id) SELECT stat_id, mod(id+100000, acct_id) FROM t1;
 
524
#UPDATE t1 SET acct_id=785 
 
525
#  WHERE MOD(stat_id,2)=0 AND MOD(id,stat_id)=MOD(acct_id,stat_id);
 
526
#OPTIMIZE TABLE t1;
 
527
#
 
528
#SELECT COUNT(*) FROM t1;
 
529
#SELECT COUNT(*) FROM t1 WHERE acct_id=785;
 
530
#
 
531
#EXPLAIN SELECT COUNT(*) FROM t1 WHERE stat_id IN (1,3) AND acct_id=785; 
 
532
#
 
533
#INSERT INTO t2 SELECT * FROM t1;
 
534
#OPTIMIZE TABLE t2;
 
535
#
 
536
#EXPLAIN SELECT COUNT(*) FROM t2 WHERE stat_id IN (1,3) AND acct_id=785;
 
537
#
 
538
#DROP TABLE t1,t2; 
 
539
#
540
540
#
541
541
# Bug #28652: assert when alter innodb table operation
542
542
#
548
548
#
549
549
# Bug #25866: Getting "#HY000 Can't find record in..." on and INSERT
550
550
#
551
 
CREATE TABLE t1 (a CHAR(2), KEY (a)) ENGINE = InnoDB DEFAULT CHARSET=UTF8;
 
551
CREATE TABLE t1 (a CHAR(2), KEY (a)) ENGINE = InnoDB;
552
552
INSERT INTO t1 VALUES ('uk'),('bg');
553
553
SELECT * FROM t1 WHERE a = 'uk';
554
554
DELETE FROM t1 WHERE a = 'uk';
565
565
UPDATE t2 SET a = 'us' WHERE a = 'uk';
566
566
SELECT * FROM t2 WHERE a = 'uk';
567
567
 
568
 
CREATE TABLE t3 (a CHAR(2), KEY (a)) ENGINE = MyISAM;
 
568
CREATE TEMPORARY TABLE t3 (a CHAR(2), KEY (a)) ENGINE = MyISAM;
569
569
INSERT INTO t3 VALUES ('uk'),('bg');
570
570
SELECT * FROM t3 WHERE a = 'uk';
571
571
DELETE FROM t3 WHERE a = 'uk';
577
577
DROP TABLE t1,t2,t3;
578
578
 
579
579
#
580
 
# Test bug when trying to drop data file which no InnoDB directory entry
581
 
#
582
 
 
583
 
create table t1 (a int) engine=innodb;
584
 
copy_file $MYSQLTEST_VARDIR/master-data/test/t1.frm $MYSQLTEST_VARDIR/master-data/test/bug29807.frm;
585
 
--error 1146
586
 
select * from bug29807;
587
 
drop table t1;
588
 
--error 1051
589
 
drop table bug29807;
590
 
create table bug29807 (a int);
591
 
drop table bug29807;
592
 
 
593
 
 
594
 
#
595
 
# Bug #29154: LOCK TABLES is not atomic when >1 InnoDB tables are locked
596
 
#
597
 
 
598
 
CREATE TABLE t1 (a INT) ENGINE=InnoDB; 
599
 
CREATE TABLE t2 (a INT) ENGINE=InnoDB; 
600
 
 
601
 
CONNECT (c1,localhost,root,,);
602
 
CONNECT (c2,localhost,root,,);
603
 
 
604
 
--echo switch to connection c1
605
 
CONNECTION c1;
606
 
SET AUTOCOMMIT=0;
607
 
INSERT INTO t2 VALUES (1);
608
 
 
609
 
--echo switch to connection c2
610
 
CONNECTION c2;
611
 
SET AUTOCOMMIT=0;
612
 
--error ER_LOCK_WAIT_TIMEOUT
613
 
LOCK TABLES t1 READ, t2 READ;
614
 
 
615
 
--echo switch to connection c1
616
 
CONNECTION c1;
617
 
COMMIT;
618
 
INSERT INTO t1 VALUES (1);
619
 
 
620
 
--echo switch to connection default
621
 
CONNECTION default;
622
 
SET AUTOCOMMIT=default;
623
 
DISCONNECT c1;
624
 
DISCONNECT c2;
625
 
DROP TABLE t1,t2;
626
 
 
627
 
#
628
580
# Bug #25798: a query with forced index merge returns wrong result 
629
581
#
630
582
 
639
591
CREATE TABLE t2 (
640
592
  b int NOT NULL auto_increment PRIMARY KEY,
641
593
  c datetime NOT NULL
642
 
) ENGINE= MyISAM;
 
594
) ENGINE= InnoDB;
643
595
 
644
596
INSERT INTO t2(c) VALUES ('2007-01-01');
645
597
INSERT INTO t2(c) SELECT c FROM t2;
731
683
#
732
684
# Bug#17530: Incorrect key truncation on table creation caused server crash.
733
685
#
734
 
create table t1(f1 varchar(800) binary not null, key(f1))
735
 
  character set utf8 collate utf8_general_ci;
 
686
create table t1(f1 varchar(800) not null, key(f1));
736
687
insert into t1 values('aaa');
737
688
drop table t1;
738
689
 
758
709
--source include/innodb_rollback_on_timeout.inc
759
710
 
760
711
#
761
 
# Bug#27296 Assertion in ALTER TABLE SET DEFAULT in Linux Debug build
762
 
# (possible deadlock).
763
 
#
764
 
# The bug is applicable only to a transactoinal table.
765
 
# Cover with tests behavior that no longer causes an
766
 
# assertion.
767
 
#
768
 
--disable_warnings
769
 
drop table if exists t1;
770
 
--enable_warnings
771
 
create table t1 (a int) engine=innodb;
772
 
alter table t1 alter a set default 1;
773
 
drop table t1;
774
 
 
775
 
--echo
776
 
--echo Bug#24918 drop table and lock / inconsistent between 
777
 
--echo perm and temp tables
778
 
--echo
779
 
--echo Check transactional tables under LOCK TABLES
780
 
--echo
781
 
--disable_warnings
782
 
drop table if exists t24918, t24918_tmp, t24918_trans, t24918_trans_tmp, 
783
 
t24918_access;
784
 
--enable_warnings
785
 
create table t24918_access (id int);
786
 
create table t24918 (id int) engine=myisam;
787
 
create temporary table t24918_tmp (id int) engine=myisam;
788
 
create table t24918_trans (id int) engine=innodb;
789
 
create temporary table t24918_trans_tmp (id int) engine=innodb;
790
 
 
791
 
lock table t24918 write, t24918_tmp write, t24918_trans write, t24918_trans_tmp write;
792
 
drop table t24918;
793
 
--error ER_TABLE_NOT_LOCKED
794
 
select * from t24918_access;
795
 
drop table t24918_trans;
796
 
--error ER_TABLE_NOT_LOCKED
797
 
select * from t24918_access;
798
 
drop table t24918_trans_tmp;
799
 
--error ER_TABLE_NOT_LOCKED
800
 
select * from t24918_access;
801
 
drop table t24918_tmp;
802
 
--error ER_TABLE_NOT_LOCKED
803
 
select * from t24918_access;
804
 
unlock tables;
805
 
 
806
 
drop table t24918_access;
807
 
#
808
712
# Bug #28591: MySQL need not sort the records in case of ORDER BY
809
713
# primary_key on InnoDB table
810
714
#
841
745
#
842
746
# Bug #28125: ERROR 2013 when adding index.
843
747
#
844
 
create table t1(a text) engine=innodb default charset=utf8; 
 
748
create table t1(a text) engine=innodb;
845
749
insert into t1 values('aaa');
846
750
alter table t1 add index(a(1024));
847
751
show create table t1;
1017
921
# UPDATE": if the row is updated, it's like a regular UPDATE:
1018
922
# LAST_INSERT_ID() is not affected.
1019
923
CREATE TABLE `t2` (
1020
 
  `k` int(11) NOT NULL auto_increment,
1021
 
  `a` int(11) default NULL,
1022
 
  `c` int(11) default NULL,
 
924
  `k` int NOT NULL auto_increment,
 
925
  `a` int default NULL,
 
926
  `c` int default NULL,
1023
927
  PRIMARY KEY  (`k`),
1024
928
  UNIQUE KEY `idx_1` (`a`)
1025
929
);
1067
971
 
1068
972
 
1069
973
#
1070
 
# Tests for bug #28415 "Some ALTER TABLE statements no longer work
1071
 
# under LOCK TABLES" and some aspects of fast ALTER TABLE behaviour
1072
 
# for transactional tables.
1073
 
#
1074
 
--disable_warnings
1075
 
drop table if exists t1, t2;
1076
 
--enable_warnings
1077
 
create table t1 (i int);
1078
 
alter table t1 modify i int default 1;
1079
 
alter table t1 modify i int default 2, rename t2;
1080
 
lock table t2 write;
1081
 
alter table t2 modify i int default 3;
1082
 
unlock tables;
1083
 
lock table t2 write;
1084
 
alter table t2 modify i int default 4, rename t1;
1085
 
unlock tables;
1086
 
drop table t1;
1087
 
 
1088
 
 
1089
 
1090
 
# Some more tests for ALTER TABLE and LOCK TABLES for transactional tables.
1091
 
#
1092
 
# Table which is altered under LOCK TABLES should stay in list of locked
1093
 
# tables and be available after alter takes place unless ALTER contains
1094
 
# RENAME clause. We should see the new definition of table, of course.
1095
 
# Before 5.1 this behavior was inconsistent across the platforms and
1096
 
# different engines. See also tests in alter_table.test
1097
 
#
1098
 
--disable_warnings
1099
 
drop table if exists t1;
1100
 
--enable_warnings
1101
 
create table t1 (i int);
1102
 
insert into t1 values ();
1103
 
lock table t1 write;
1104
 
# Example of so-called 'fast' ALTER TABLE
1105
 
alter table t1 modify i int default 1;
1106
 
insert into t1 values ();
1107
 
select * from t1;
1108
 
# And now full-blown ALTER TABLE
1109
 
alter table t1 change i c char(10) default "Two";
1110
 
insert into t1 values ();
1111
 
select * from t1;
1112
 
unlock tables;
1113
 
select * from t1;
1114
 
drop tables t1;
1115
 
 
1116
 
#
1117
974
# Bug#29310: An InnoDB table was updated when the data wasn't actually changed.
1118
975
#
1119
976
create table t1(f1 varchar(5) unique, f2 timestamp NOT NULL DEFAULT
1176
1033
#             auto_increment keys
1177
1034
#
1178
1035
create table t1 (a int auto_increment primary key) engine=innodb;
 
1036
--error 1105
1179
1037
alter table t1 order by a;
1180
1038
drop table t1;
1181
1039