~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/alter_table.result

  • Committer: Brian Aker
  • Date: 2009-06-16 00:53:22 UTC
  • mto: This revision was merged to the branch mainline in revision 1094.
  • Revision ID: brian@gaz-20090616005322-w0ode4jul9z8s2y9
Partial fix for tests for tmp

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
10
67
67
12
68
68
drop table t1;
69
 
CREATE TABLE t1 (
 
69
CREATE TEMPORARY TABLE t1 (
70
70
id int NOT NULL default '0',
71
71
category_id int NOT NULL default '0',
72
72
type_id int NOT NULL default '0',
299
299
t1      0       a       2       b       A       300     NULL    NULL    YES     BTREE           
300
300
t1      1       b       1       b       A       300     NULL    NULL    YES     BTREE           
301
301
drop table t1;
302
 
CREATE TABLE t1 (
 
302
CREATE TEMPORARY TABLE t1 (
303
303
Host varchar(16) binary NOT NULL default '',
304
304
User varchar(16) binary NOT NULL default '',
305
305
PRIMARY KEY  (Host,User),
322
322
Table   Non_unique      Key_name        Seq_in_index    Column_name     Collation       Cardinality     Sub_part        Packed  Null    Index_type      Comment Index_Comment
323
323
t1      0       PRIMARY 1       Host    A       NULL    NULL    NULL            BTREE           
324
324
t1      0       PRIMARY 2       User    A       2       NULL    NULL            BTREE           
325
 
t1      1       Host    1       Host    A       1       NULL    NULL            BTREE           
 
325
t1      1       Host    1       Host    A       NULL    NULL    NULL            BTREE           
326
326
CHECK TABLES t1;
327
327
Table   Op      Msg_type        Msg_text
328
328
test.t1 check   status  OK
341
341
drop table if exists t1;
342
342
Warnings:
343
343
Note    1051    Unknown table 't1'
344
 
create table t1 ( a varchar(10) not null primary key ) engine=myisam;
 
344
create TEMPORARY table t1 ( a varchar(10) not null primary key ) engine=myisam;
345
345
flush tables;
346
346
alter table t1 modify a varchar(10);
347
347
flush tables;
348
348
alter table t1 modify a varchar(10) not null;
349
349
drop table if exists t1;
350
 
create table t1 (a int, b int, c int, d int, e int, f int, g int, h int,i int, primary key (a,b,c,d,e,f,g,i,h)) engine=MyISAM;
 
350
create TEMPORARY table t1 (a int, b int, c int, d int, e int, f int, g int, h int,i int, primary key (a,b,c,d,e,f,g,i,h)) engine=MyISAM;
351
351
insert into t1 (a,b,c,d,e,f,g,h,i) values(1,1,1,1,1,1,1,1,1);
352
352
show table status like 't1';
353
353
Name    Engine  Version Row_format      Rows    Avg_row_length  Data_length     Max_data_length Index_length    Data_free       Auto_increment  Create_time     Update_time     Check_time      Collation       Checksum        Create_options  Comment
354
 
t1      MyISAM  X       Fixed   1       37      X       X       X       X       X       X       X       X       utf8_general_ci NULL            
355
354
alter table t1 modify a int;
356
355
show table status like 't1';
357
356
Name    Engine  Version Row_format      Rows    Avg_row_length  Data_length     Max_data_length Index_length    Data_free       Auto_increment  Create_time     Update_time     Check_time      Collation       Checksum        Create_options  Comment
358
 
t1      MyISAM  X       Fixed   1       37      X       X       X       X       X       X       X       X       utf8_general_ci NULL            
359
357
drop table t1;
360
 
create table t1 (a int not null default 0, b int not null default 0, c int not null default 0, d int not null default 0, e int not null default 0, f int not null default 0, g int not null default 0, h int not null default 0,i int not null default 0, primary key (a,b,c,d,e,f,g,i,h)) engine=MyISAM;
 
358
create TEMPORARY table t1 (a int not null default 0, b int not null default 0, c int not null default 0, d int not null default 0, e int not null default 0, f int not null default 0, g int not null default 0, h int not null default 0,i int not null default 0, primary key (a,b,c,d,e,f,g,i,h)) engine=MyISAM;
361
359
insert into t1 (a) values(1);
362
360
show table status like 't1';
363
361
Name    Engine  Version Row_format      Rows    Avg_row_length  Data_length     Max_data_length Index_length    Data_free       Auto_increment  Create_time     Update_time     Check_time      Collation       Checksum        Create_options  Comment
364
 
t1      MyISAM  X       Fixed   1       37      X       X       X       X       X       X       X       X       utf8_general_ci NULL            
365
362
drop table t1;
366
363
CREATE TABLE t1 (a int PRIMARY KEY, b INT UNIQUE);
367
364
ALTER TABLE t1 DROP PRIMARY KEY;
381
378
ERROR 42000: Can't DROP 'no_such_key'; check that column/key exists
382
379
alter table t1 drop key a;
383
380
drop table t1;
384
 
CREATE TABLE T12207(a int) ENGINE=MYISAM;
 
381
CREATE TEMPORARY TABLE T12207(a int) ENGINE=MYISAM;
385
382
ALTER TABLE T12207 DISCARD TABLESPACE;
386
383
ERROR HY000: Table storage engine for 'T12207' doesn't have this option
387
384
DROP TABLE T12207;
682
679
Field   Type    Null    Key     Default Extra
683
680
mycol   int     NO              0       
684
681
drop table t1;
685
 
create table t1(id int primary key auto_increment) engine=heap;
 
682
create TEMPORARY table t1(id int primary key auto_increment) engine=heap;
686
683
insert into t1 values (null);
687
684
insert into t1 values (null);
688
685
select * from t1;
761
758
i       v
762
759
4       3r4f
763
760
drop table t1;
764
 
create table t1 (t varchar(255) default null, key t (t(80))) engine=myisam;
 
761
create TEMPORARY table t1 (t varchar(255) default null, key t (t(80))) engine=myisam;
765
762
alter table t1 change t t text;
766
763
drop table t1;
767
764
CREATE TABLE t1 (s CHAR(8) BINARY);