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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
36d3f48c
Commit
36d3f48c
authored
Oct 01, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed test to be independent on scan order
parent
cd44553c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
17 deletions
+18
-17
mysql-test/r/ndb_alter_table.result
mysql-test/r/ndb_alter_table.result
+14
-13
mysql-test/t/ndb_alter_table.test
mysql-test/t/ndb_alter_table.test
+4
-4
No files found.
mysql-test/r/ndb_alter_table.result
View file @
36d3f48c
...
@@ -134,20 +134,21 @@ a INT NOT NULL PRIMARY KEY,
...
@@ -134,20 +134,21 @@ a INT NOT NULL PRIMARY KEY,
b INT NOT NULL
b INT NOT NULL
) ENGINE=ndbcluster;
) ENGINE=ndbcluster;
INSERT INTO t1 VALUES (0,1),(17,18);
INSERT INTO t1 VALUES (0,1),(17,18);
select * from t1;
select * from t1
order by a
;
a b
a b
17 18
0 1
0 1
17 18
alter table t1 add c int not null unique auto_increment;
alter table t1 add c int not null unique auto_increment;
select * from t1 order by a;
select c from t1 order by c;
a b c
c
0 1 2
1
17 18 1
2
INSERT INTO t1 VALUES (18,19,3),(20,21,0);
INSERT INTO t1 VALUES (1,2,0),(18,19,4),(20,21,0);
select * from t1 order by a;
select c from t1 order by c;
a b c
c
0 1 2
1
17 18 1
2
18 19 3
3
20 21 4
4
5
drop table t1;
drop table t1;
mysql-test/t/ndb_alter_table.test
View file @
36d3f48c
...
@@ -107,11 +107,11 @@ CREATE TABLE t1 (
...
@@ -107,11 +107,11 @@ CREATE TABLE t1 (
)
ENGINE
=
ndbcluster
;
)
ENGINE
=
ndbcluster
;
INSERT
INTO
t1
VALUES
(
0
,
1
),(
17
,
18
);
INSERT
INTO
t1
VALUES
(
0
,
1
),(
17
,
18
);
select
*
from
t1
;
alter
table
t1
add
c
int
not
null
unique
auto_increment
;
select
*
from
t1
order
by
a
;
INSERT
INTO
t1
VALUES
(
18
,
19
,
3
),(
20
,
21
,
0
);
select
*
from
t1
order
by
a
;
select
*
from
t1
order
by
a
;
alter
table
t1
add
c
int
not
null
unique
auto_increment
;
select
c
from
t1
order
by
c
;
INSERT
INTO
t1
VALUES
(
1
,
2
,
0
),(
18
,
19
,
4
),(
20
,
21
,
0
);
select
c
from
t1
order
by
c
;
drop
table
t1
;
drop
table
t1
;
#--disable_warnings
#--disable_warnings
...
...
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