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
43ce2617
Commit
43ce2617
authored
Nov 07, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge perch.ndb.mysql.com:/home/jonas/src/51-work
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
parents
b9956d04
32034246
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
66 additions
and
1 deletion
+66
-1
mysql-test/r/ndb_index_ordered.result
mysql-test/r/ndb_index_ordered.result
+39
-0
mysql-test/t/ndb_index_ordered.test
mysql-test/t/ndb_index_ordered.test
+25
-0
storage/ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
storage/ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
+2
-1
No files found.
mysql-test/r/ndb_index_ordered.result
View file @
43ce2617
...
...
@@ -796,3 +796,42 @@ Variable_name Value
ndb_index_stat_cache_entries 32
ndb_index_stat_enable OFF
ndb_index_stat_update_freq 20
create table t1 (a int primary key) engine = ndb;
insert into t1 values (1), (2), (3);
begin;
delete from t1 where a > 1;
rollback;
select * from t1 order by a;
a
1
2
3
begin;
delete from t1 where a > 1;
rollback;
begin;
select * from t1 order by a;
a
1
2
3
delete from t1 where a > 2;
select * from t1 order by a;
a
1
2
delete from t1 where a > 1;
select * from t1 order by a;
a
1
delete from t1 where a > 0;
select * from t1 order by a;
a
rollback;
select * from t1 order by a;
a
1
2
3
delete from t1;
drop table t1;
mysql-test/t/ndb_index_ordered.test
View file @
43ce2617
...
...
@@ -430,3 +430,28 @@ set ndb_index_stat_update_freq = @@global.ndb_index_stat_update_freq;
show
session
variables
like
'ndb_index_stat_%'
;
# End of 4.1 tests
# bug#24039
create
table
t1
(
a
int
primary
key
)
engine
=
ndb
;
insert
into
t1
values
(
1
),
(
2
),
(
3
);
begin
;
delete
from
t1
where
a
>
1
;
rollback
;
select
*
from
t1
order
by
a
;
begin
;
delete
from
t1
where
a
>
1
;
rollback
;
begin
;
select
*
from
t1
order
by
a
;
delete
from
t1
where
a
>
2
;
select
*
from
t1
order
by
a
;
delete
from
t1
where
a
>
1
;
select
*
from
t1
order
by
a
;
delete
from
t1
where
a
>
0
;
select
*
from
t1
order
by
a
;
rollback
;
select
*
from
t1
order
by
a
;
delete
from
t1
;
drop
table
t1
;
storage/ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
View file @
43ce2617
...
...
@@ -4394,7 +4394,8 @@ void Dbacc::commitOperation(Signal* signal)
Uint32
opbits
=
operationRecPtr
.
p
->
m_op_bits
;
Uint32
op
=
opbits
&
Operationrec
::
OP_MASK
;
ndbrequire
((
opbits
&
Operationrec
::
OP_STATE_MASK
)
==
Operationrec
::
OP_STATE_EXECUTED
);
if
((
opbits
&
Operationrec
::
OP_COMMIT_DELETE_CHECK
)
==
0
&&
(
op
!=
ZREAD
))
if
((
opbits
&
Operationrec
::
OP_COMMIT_DELETE_CHECK
)
==
0
&&
(
op
!=
ZREAD
&&
op
!=
ZSCAN_OP
))
{
jam
();
/* This method is used to check whether the end result of the transaction
...
...
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