~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/suite/ndb/r/ndb_multi.result

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
drop table if exists t1, t2, t3, t4;
 
2
flush status;
 
3
drop table if exists t1, t2, t3, t4;
 
4
flush status;
 
5
create table t1 (a int) engine=ndbcluster;
 
6
create table t2 (a int) engine=ndbcluster;
 
7
insert into t1 value (2);
 
8
insert into t2 value (3);
 
9
select * from t1;
 
10
a
 
11
2
 
12
select * from t2;
 
13
a
 
14
3
 
15
show status like 'handler_discover%';
 
16
Variable_name   Value
 
17
Handler_discover        0
 
18
select * from t1;
 
19
a
 
20
2
 
21
drop table t1;
 
22
create table t1 (a int) engine=ndbcluster;
 
23
insert into t1 value (2);
 
24
select * from t1;
 
25
a
 
26
2
 
27
show status like 'handler_discover%';
 
28
Variable_name   Value
 
29
Handler_discover        0
 
30
drop table t1;
 
31
create table t1 (a int) engine=ndbcluster;
 
32
insert into t1 value (2);
 
33
select * from t1;
 
34
a
 
35
2
 
36
select * from t1;
 
37
a
 
38
2
 
39
flush status;
 
40
select * from t1;
 
41
a
 
42
2
 
43
update t1 set a=3 where a=2;
 
44
show status like 'handler_discover%';
 
45
Variable_name   Value
 
46
Handler_discover        0
 
47
create table t3 (a int not null primary key, b varchar(22),
 
48
c int, last_col text) engine=ndb;
 
49
insert into t3 values(1, 'Hi!', 89, 'Longtext column');
 
50
create table t4 (pk int primary key, b int) engine=ndb;
 
51
select * from t1;
 
52
a
 
53
3
 
54
select * from t3;
 
55
a       b       c       last_col
 
56
1       Hi!     89      Longtext column
 
57
show tables like 't4';
 
58
Tables_in_test (t4)
 
59
t4
 
60
show tables;
 
61
Tables_in_test
 
62
t1
 
63
t2
 
64
t3
 
65
t4
 
66
drop table t1, t2, t3, t4;
 
67
create table t1(c1 int key)ENGINE=MyISAM;
 
68
insert into t1 values(1),(3),(5);
 
69
select * from t1 order by c1;
 
70
c1
 
71
1
 
72
3
 
73
5
 
74
show tables;
 
75
Tables_in_test
 
76
create table t1(c1 int key)ENGINE=MyISAM;
 
77
insert into t1 values(100),(344),(533);
 
78
select * from t1 order by c1;
 
79
c1
 
80
100
 
81
344
 
82
533
 
83
alter table t1 engine=ndb;
 
84
show tables;
 
85
Tables_in_test
 
86
t1
 
87
Warnings:
 
88
Warning 1050    Local table test.t1 shadows ndb table
 
89
select * from t1 order by c1;
 
90
c1
 
91
100
 
92
344
 
93
533
 
94
drop table t1;
 
95
select * from t1 order by c1;
 
96
c1
 
97
1
 
98
3
 
99
5
 
100
drop table t1;
 
101
create database db;
 
102
use db;
 
103
create table t1(x int) engine=ndb;
 
104
use db;
 
105
show tables;
 
106
Tables_in_db
 
107
t1
 
108
drop database db;
 
109
show tables;
 
110
ERROR 42000: Unknown database 'db'
 
111
create database db;
 
112
use db;
 
113
create table t1(x int) engine=ndb;
 
114
use db;
 
115
create table t2(x int) engine=myisam;
 
116
show tables;
 
117
Tables_in_db
 
118
t1
 
119
t2
 
120
drop database db;
 
121
show tables;
 
122
Tables_in_db
 
123
t2
 
124
drop database db;
 
125
use test;
 
126
create table `test`.`t1$EX`
 
127
 (server_id int unsigned,
 
128
master_server_id int unsigned,
 
129
master_epoch bigint unsigned,
 
130
count int unsigned,
 
131
primary key(server_id, master_server_id,
 
132
master_epoch, count))
 
133
engine ndb;
 
134
show tables like '%$%';
 
135
Tables_in_test (%$%)
 
136
t1$ex
 
137
use test;
 
138
show tables like '%$%';
 
139
Tables_in_test (%$%)
 
140
t1$ex
 
141
drop table `test`.`t1$EX`;
 
142
show tables like '%$%';
 
143
Tables_in_test (%$%)
 
144
show tables like '%$%';
 
145
Tables_in_test (%$%)