~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/alter_table.result

  • Committer: Brian Aker
  • Date: 2008-12-06 22:41:58 UTC
  • Revision ID: brian@tangent.org-20081206224158-oj4j95n7w0mtxxd1
Completing up replication API.

Show diffs side-by-side

added added

removed removed

Lines of Context:
396
396
insert into t1 (a) values(1);
397
397
show table status like 't1';
398
398
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
399
 
t1      MyISAM  10      Fixed   1       37      X       X       X       X       X       X       X       X       utf8_general_ci NULL            
 
399
t1      MyISAM  X       Fixed   1       37      X       X       X       X       X       X       X       X       utf8_general_ci NULL            
400
400
alter table t1 modify a int;
401
401
show table status like 't1';
402
402
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
403
 
t1      MyISAM  10      Fixed   1       37      X       X       X       X       X       X       X       X       utf8_general_ci NULL            
 
403
t1      MyISAM  X       Fixed   1       37      X       X       X       X       X       X       X       X       utf8_general_ci NULL            
404
404
drop table t1;
405
405
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;
406
406
insert into t1 (a) values(1);
407
407
show table status like 't1';
408
408
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
409
 
t1      MyISAM  10      Fixed   1       37      X       X       X       X       X       X       X       X       utf8_general_ci NULL            
 
409
t1      MyISAM  X       Fixed   1       37      X       X       X       X       X       X       X       X       utf8_general_ci NULL            
410
410
drop table t1;
411
411
CREATE TABLE t1 (a int PRIMARY KEY, b INT UNIQUE);
412
412
ALTER TABLE t1 DROP PRIMARY KEY;
713
713
3       3       Stored Functions        You
714
714
2       3       Server  Me
715
715
alter table table_24562 order by 12;
716
 
ERROR 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 '12' at line 1
 
716
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near '12' at line 1
717
717
alter table table_24562 order by (section + 12);
718
 
ERROR 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 '(section + 12)' at line 1
 
718
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near '(section + 12)' at line 1
719
719
alter table table_24562 order by length(title);
720
 
ERROR 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 '(title)' at line 1
 
720
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near '(title)' at line 1
721
721
alter table table_24562 order by no_such_col;
722
722
ERROR 42S22: Unknown column 'no_such_col' in 'order clause'
723
723
drop table table_24562;