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

« back to all changes in this revision

Viewing changes to mysql-test/suite/ndb/r/ndb_single_user.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;
 
2
create table t1 (a int key, b int unique, c int) engine ndb;
 
3
ERROR HY000: Can't create table 'test.t1' (errno: 299)
 
4
CREATE LOGFILE GROUP lg1
 
5
ADD UNDOFILE 'undofile.dat'
 
6
INITIAL_SIZE 16M
 
7
UNDO_BUFFER_SIZE = 1M
 
8
ENGINE=NDB;
 
9
ERROR HY000: Failed to create LOGFILE GROUP
 
10
show warnings;
 
11
Level   Code    Message
 
12
Error   1296    Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
 
13
Error   1528    Failed to create LOGFILE GROUP
 
14
create table t1 (a int key, b int unique, c int) engine ndb;
 
15
CREATE LOGFILE GROUP lg1
 
16
ADD UNDOFILE 'undofile.dat'
 
17
INITIAL_SIZE 16M
 
18
UNDO_BUFFER_SIZE = 1M
 
19
ENGINE=NDB;
 
20
CREATE TABLESPACE ts1
 
21
ADD DATAFILE 'datafile.dat'
 
22
USE LOGFILE GROUP lg1
 
23
INITIAL_SIZE 12M
 
24
ENGINE NDB;
 
25
ERROR HY000: Failed to create TABLESPACE
 
26
show warnings;
 
27
Level   Code    Message
 
28
Error   1296    Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
 
29
Error   1528    Failed to create TABLESPACE
 
30
DROP LOGFILE GROUP lg1 
 
31
ENGINE =NDB;
 
32
ERROR HY000: Failed to drop LOGFILE GROUP
 
33
show warnings;
 
34
Level   Code    Message
 
35
Error   1296    Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
 
36
Error   1529    Failed to drop LOGFILE GROUP
 
37
CREATE TABLESPACE ts1
 
38
ADD DATAFILE 'datafile.dat'
 
39
USE LOGFILE GROUP lg1
 
40
INITIAL_SIZE 12M
 
41
ENGINE NDB;
 
42
ALTER TABLESPACE ts1
 
43
DROP DATAFILE 'datafile.dat'
 
44
ENGINE NDB;
 
45
ERROR HY000: Failed to alter:  DROP DATAFILE
 
46
show warnings;
 
47
Level   Code    Message
 
48
Error   1296    Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
 
49
Error   1533    Failed to alter:  DROP DATAFILE
 
50
ALTER TABLESPACE ts1
 
51
DROP DATAFILE 'datafile.dat'
 
52
ENGINE NDB;
 
53
DROP TABLESPACE ts1
 
54
ENGINE NDB;
 
55
ERROR HY000: Failed to drop TABLESPACE
 
56
show warnings;
 
57
Level   Code    Message
 
58
Error   1296    Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
 
59
Error   1529    Failed to drop TABLESPACE
 
60
DROP TABLESPACE ts1
 
61
ENGINE NDB;
 
62
DROP LOGFILE GROUP lg1 
 
63
ENGINE =NDB;
 
64
insert into t1 values (1,1,0),(2,2,0),(3,3,0),(4,4,0),(5,5,0),(6,6,0),(7,7,0),(8,8,0),(9,9,0),(10,10,0);
 
65
create table t2 as select * from t1;
 
66
select * from t1 where a = 1;
 
67
a       b       c
 
68
1       1       0
 
69
select * from t1 where b = 4;
 
70
a       b       c
 
71
4       4       0
 
72
select * from t1 where a > 4 order by a;
 
73
a       b       c
 
74
5       5       0
 
75
6       6       0
 
76
7       7       0
 
77
8       8       0
 
78
9       9       0
 
79
10      10      0
 
80
update t1 set b=102 where a = 2;
 
81
update t1 set b=103 where b = 3;
 
82
update t1 set b=b+100;
 
83
update t1 set b=b+100 where a > 7;
 
84
delete from t1;
 
85
insert into t1 select * from t2;
 
86
create unique index new_index on t1 (b,c);
 
87
drop table t2;
 
88
drop table t1;
 
89
ERROR 42S02: Unknown table 't1'
 
90
create index new_index_fail on t1 (c);
 
91
ERROR HY000: Got error 299 'Operation not allowed or aborted due to single user mode' from NDBCLUSTER
 
92
insert into t1 values (21,21,0),(22,22,0),(23,23,0),(24,24,0),(25,25,0),(26,26,0),(27,27,0),(28,28,0),(29,29,0),(210,210,0);
 
93
ERROR HY000: Got error 299 'Operation not allowed or aborted due to single user mode' from NDBCLUSTER
 
94
select * from t1 where a = 1;
 
95
ERROR HY000: Got error 299 'Operation not allowed or aborted due to single user mode' from NDBCLUSTER
 
96
select * from t1 where b = 4;
 
97
ERROR HY000: Got error 299 'Operation not allowed or aborted due to single user mode' from NDBCLUSTER
 
98
update t1 set b=102 where a = 2;
 
99
ERROR HY000: Got error 299 'Operation not allowed or aborted due to single user mode' from NDBCLUSTER
 
100
update t1 set b=103 where b = 3;
 
101
ERROR HY000: Got error 299 'Operation not allowed or aborted due to single user mode' from NDBCLUSTER
 
102
update t1 set b=b+100;
 
103
ERROR HY000: Got error 299 'Operation not allowed or aborted due to single user mode' from NDBCLUSTER
 
104
update t1 set b=b+100 where a > 7;
 
105
ERROR HY000: Got error 299 'Operation not allowed or aborted due to single user mode' from NDBCLUSTER
 
106
BEGIN;
 
107
update t1 set b=b+100 where a=1;
 
108
BEGIN;
 
109
update t1 set b=b+100 where a=2;
 
110
update t1 set b=b+100 where a=3;
 
111
COMMIT;
 
112
update t1 set b=b+100 where a=4;
 
113
ERROR HY000: Got error 299 'Operation not allowed or aborted due to single user mode' from NDBCLUSTER
 
114
COMMIT;
 
115
ERROR HY000: Got error 4350 'Transaction already aborted' from NDBCLUSTER
 
116
create table t2 (a int) engine myisam;
 
117
alter table t2 add column (b int);
 
118
drop table t2;
 
119
drop table t1;