Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
160ca0b7
Commit
160ca0b7
authored
Apr 16, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some more tests + drop stuff after done
parent
c0e1c76d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
1 deletion
+54
-1
mysql-test/r/ndb_single_user.result
mysql-test/r/ndb_single_user.result
+29
-0
mysql-test/t/ndb_single_user.test
mysql-test/t/ndb_single_user.test
+25
-1
No files found.
mysql-test/r/ndb_single_user.result
View file @
160ca0b7
...
@@ -28,11 +28,40 @@ show warnings;
...
@@ -28,11 +28,40 @@ show warnings;
Level Code Message
Level Code Message
Error 1296 Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
Error 1296 Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
Error 1516 Failed to create TABLESPACE
Error 1516 Failed to create TABLESPACE
DROP LOGFILE GROUP lg1
ENGINE =NDB;
ERROR HY000: Failed to drop LOGFILE GROUP
show warnings;
Level Code Message
Error 1296 Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
Error 1517 Failed to drop LOGFILE GROUP
CREATE TABLESPACE ts1
CREATE TABLESPACE ts1
ADD DATAFILE 'datafile.dat'
ADD DATAFILE 'datafile.dat'
USE LOGFILE GROUP lg1
USE LOGFILE GROUP lg1
INITIAL_SIZE 12M
INITIAL_SIZE 12M
ENGINE NDB;
ENGINE NDB;
ALTER TABLESPACE ts1
DROP DATAFILE 'datafile.dat'
ENGINE NDB;
ERROR HY000: Failed to alter: DROP DATAFILE
show warnings;
Level Code Message
Error 1296 Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
Error 1521 Failed to alter: DROP DATAFILE
ALTER TABLESPACE ts1
DROP DATAFILE 'datafile.dat'
ENGINE NDB;
DROP TABLESPACE ts1
ENGINE NDB;
ERROR HY000: Failed to drop TABLESPACE
show warnings;
Level Code Message
Error 1296 Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
Error 1517 Failed to drop TABLESPACE
DROP TABLESPACE ts1
ENGINE NDB;
DROP LOGFILE GROUP lg1
ENGINE =NDB;
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);
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);
create table t2 as select * from t1;
create table t2 as select * from t1;
select * from t1 where a = 1;
select * from t1 where a = 1;
...
...
mysql-test/t/ndb_single_user.test
View file @
160ca0b7
...
@@ -44,19 +44,43 @@ INITIAL_SIZE 16M
...
@@ -44,19 +44,43 @@ INITIAL_SIZE 16M
UNDO_BUFFER_SIZE
=
1
M
UNDO_BUFFER_SIZE
=
1
M
ENGINE
=
NDB
;
ENGINE
=
NDB
;
--
connection
server2
--
connection
server2
--
error
1516
--
error
ER_CREATE_FILEGROUP_FAILED
CREATE
TABLESPACE
ts1
CREATE
TABLESPACE
ts1
ADD
DATAFILE
'datafile.dat'
ADD
DATAFILE
'datafile.dat'
USE
LOGFILE
GROUP lg1
USE
LOGFILE
GROUP lg1
INITIAL_SIZE 12M
INITIAL_SIZE 12M
ENGINE NDB
;
ENGINE NDB
;
show
warnings
;
show
warnings
;
--
error
ER_DROP_FILEGROUP_FAILED
DROP
LOGFILE
GROUP
lg1
ENGINE
=
NDB
;
show
warnings
;
--
connection
server1
--
connection
server1
CREATE
TABLESPACE
ts1
CREATE
TABLESPACE
ts1
ADD
DATAFILE
'datafile.dat'
ADD
DATAFILE
'datafile.dat'
USE
LOGFILE
GROUP lg1
USE
LOGFILE
GROUP lg1
INITIAL_SIZE 12M
INITIAL_SIZE 12M
ENGINE NDB
;
ENGINE NDB
;
--
connection
server2
--
error
ER_ALTER_FILEGROUP_FAILED
ALTER
TABLESPACE
ts1
DROP
DATAFILE
'datafile.dat'
ENGINE
NDB
;
show
warnings
;
--
connection
server1
ALTER
TABLESPACE
ts1
DROP
DATAFILE
'datafile.dat'
ENGINE
NDB
;
--
connection
server2
--
error
ER_DROP_FILEGROUP_FAILED
DROP
TABLESPACE
ts1
ENGINE
NDB
;
show
warnings
;
--
connection
server1
DROP
TABLESPACE
ts1
ENGINE
NDB
;
DROP
LOGFILE
GROUP
lg1
ENGINE
=
NDB
;
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
);
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
);
create
table
t2
as
select
*
from
t1
;
create
table
t2
as
select
*
from
t1
;
# read with pk
# read with pk
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment