~vkolesnikov/pbxt/pbxt-07-diskfull

« back to all changes in this revision

Viewing changes to pbxt/mysql-test-update/mysql-test/r/ndb_alter_table3.result

  • Committer: paul-mccullagh
  • Date: 2006-10-23 09:14:04 UTC
  • Revision ID: paul-mccullagh-918861e03d351978a9541168a96e58cc826734ee
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
DROP TABLE IF EXISTS t1;
 
2
create table t1 ( a int primary key, b varchar(10), c varchar(10), index (b) )
 
3
engine=ndb;
 
4
insert into t1 values (1,'one','one'), (2,'two','two'), (3,'three','three');
 
5
create index c on t1(c);
 
6
show indexes from t1;
 
7
Table   Non_unique      Key_name        Seq_in_index    Column_name     Collation       Cardinality     Sub_part        Packed  Null    Index_type      Comment
 
8
t1      0       PRIMARY 1       a       A       3       NULL    NULL            BTREE   
 
9
t1      1       b       1       b       A       3       NULL    NULL    YES     BTREE   
 
10
t1      1       c       1       c       A       3       NULL    NULL    YES     BTREE   
 
11
select * from t1 where c = 'two';
 
12
a       b       c
 
13
2       two     two
 
14
alter table t1 drop index c;
 
15
show indexes from t1;
 
16
Table   Non_unique      Key_name        Seq_in_index    Column_name     Collation       Cardinality     Sub_part        Packed  Null    Index_type      Comment
 
17
t1      0       PRIMARY 1       a       A       3       NULL    NULL            BTREE   
 
18
t1      1       b       1       b       A       3       NULL    NULL    YES     BTREE   
 
19
select * from t1 where c = 'two';
 
20
a       b       c
 
21
2       two     two
 
22
drop table t1;
 
23
create table t3 (a int primary key) engine=ndbcluster;
 
24
begin;
 
25
insert into t3 values (1);
 
26
alter table t3 rename t4;
 
27
commit;
 
28
select * from t3;
 
29
ERROR 42S02: Table 'test.t3' doesn't exist
 
30
select * from t4;
 
31
a
 
32
1
 
33
drop table t4;
 
34
show tables;
 
35
Tables_in_test