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
10583f05
Commit
10583f05
authored
Jul 28, 2004
by
magnus@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added order by to make the test output from ndb_basic and ndb_lock predicatble
parent
674bbf08
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
17 deletions
+17
-17
mysql-test/r/ndb_basic.result
mysql-test/r/ndb_basic.result
+3
-3
mysql-test/r/ndb_lock.result
mysql-test/r/ndb_lock.result
+8
-8
mysql-test/t/ndb_basic.test
mysql-test/t/ndb_basic.test
+2
-2
mysql-test/t/ndb_lock.test
mysql-test/t/ndb_lock.test
+4
-4
No files found.
mysql-test/r/ndb_basic.result
View file @
10583f05
...
@@ -24,15 +24,15 @@ pk1 attr1 attr2 attr3
...
@@ -24,15 +24,15 @@ pk1 attr1 attr2 attr3
9410 1 NULL 9412
9410 1 NULL 9412
9411 9413 17 9413
9411 9413 17 9413
UPDATE t1 SET pk1=2 WHERE attr1=1;
UPDATE t1 SET pk1=2 WHERE attr1=1;
SELECT * FROM t1;
SELECT * FROM t1
ORDER BY pk1
;
pk1 attr1 attr2 attr3
pk1 attr1 attr2 attr3
2 1 NULL 9412
2 1 NULL 9412
9411 9413 17 9413
9411 9413 17 9413
UPDATE t1 SET pk1=pk1 + 1;
UPDATE t1 SET pk1=pk1 + 1;
SELECT * FROM t1;
SELECT * FROM t1
ORDER BY pk1
;
pk1 attr1 attr2 attr3
pk1 attr1 attr2 attr3
9412 9413 17 9413
3 1 NULL 9412
3 1 NULL 9412
9412 9413 17 9413
DELETE FROM t1;
DELETE FROM t1;
SELECT * FROM t1;
SELECT * FROM t1;
pk1 attr1 attr2 attr3
pk1 attr1 attr2 attr3
...
...
mysql-test/r/ndb_lock.result
View file @
10583f05
DROP TABLE IF EXISTS t1,t2,t3,t4,t5,t6,t7;
DROP TABLE IF EXISTS t1,t2,t3,t4,t5,t6,t7;
create table t1 (x integer not null primary key, y varchar(32)) engine = ndb;
create table t1 (x integer not null primary key, y varchar(32)) engine = ndb;
insert into t1 values (1,'one'), (2,'two');
insert into t1 values (1,'one'), (2,'two');
select * from t1;
select * from t1
order by x
;
x y
x y
2 two
1 one
1 one
select * from t1;
x y
2 two
2 two
select * from t1 order by x;
x y
1 one
1 one
2 two
start transaction;
start transaction;
insert into t1 values (3,'three');
insert into t1 values (3,'three');
start transaction;
start transaction;
select * from t1;
select * from t1
order by x
;
x y
x y
2 two
1 one
1 one
2 two
commit;
commit;
select * from t1;
select * from t1
order by x
;
x y
x y
1 one
2 two
2 two
3 three
3 three
1 one
commit;
commit;
mysql-test/t/ndb_basic.test
View file @
10583f05
...
@@ -31,9 +31,9 @@ SELECT * FROM t1;
...
@@ -31,9 +31,9 @@ SELECT * FROM t1;
# Update primary key
# Update primary key
UPDATE
t1
SET
pk1
=
2
WHERE
attr1
=
1
;
UPDATE
t1
SET
pk1
=
2
WHERE
attr1
=
1
;
SELECT
*
FROM
t1
;
SELECT
*
FROM
t1
ORDER
BY
pk1
;
UPDATE
t1
SET
pk1
=
pk1
+
1
;
UPDATE
t1
SET
pk1
=
pk1
+
1
;
SELECT
*
FROM
t1
;
SELECT
*
FROM
t1
ORDER
BY
pk1
;
# Delete the record
# Delete the record
DELETE
FROM
t1
;
DELETE
FROM
t1
;
...
...
mysql-test/t/ndb_lock.test
View file @
10583f05
...
@@ -19,20 +19,20 @@ DROP TABLE IF EXISTS t1,t2,t3,t4,t5,t6,t7;
...
@@ -19,20 +19,20 @@ DROP TABLE IF EXISTS t1,t2,t3,t4,t5,t6,t7;
connection
con1
;
connection
con1
;
create
table
t1
(
x
integer
not
null
primary
key
,
y
varchar
(
32
))
engine
=
ndb
;
create
table
t1
(
x
integer
not
null
primary
key
,
y
varchar
(
32
))
engine
=
ndb
;
insert
into
t1
values
(
1
,
'one'
),
(
2
,
'two'
);
insert
into
t1
values
(
1
,
'one'
),
(
2
,
'two'
);
select
*
from
t1
;
select
*
from
t1
order
by
x
;
connection
con2
;
connection
con2
;
select
*
from
t1
;
select
*
from
t1
order
by
x
;
connection
con1
;
connection
con1
;
start
transaction
;
insert
into
t1
values
(
3
,
'three'
);
start
transaction
;
insert
into
t1
values
(
3
,
'three'
);
connection
con2
;
connection
con2
;
start
transaction
;
select
*
from
t1
;
start
transaction
;
select
*
from
t1
order
by
x
;
connection
con1
;
connection
con1
;
commit
;
commit
;
connection
con2
;
connection
con2
;
select
*
from
t1
;
select
*
from
t1
order
by
x
;
commit
;
commit
;
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