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
822fd77a
Commit
822fd77a
authored
Aug 14, 2007
by
mskold/marty@linux.site
Browse files
Options
Browse Files
Download
Plain Diff
Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb
into mysql.com:/windows/Linux_space/MySQL/mysql-5.0-ndb
parents
e57ae669
06b3c9a8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
1 deletion
+43
-1
mysql-test/r/ndb_read_multi_range.result
mysql-test/r/ndb_read_multi_range.result
+19
-0
mysql-test/t/ndb_read_multi_range.test
mysql-test/t/ndb_read_multi_range.test
+22
-0
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+2
-1
No files found.
mysql-test/r/ndb_read_multi_range.result
View file @
822fd77a
...
@@ -405,3 +405,22 @@ a b
...
@@ -405,3 +405,22 @@ a b
1 1
1 1
10 10
10 10
drop table t2;
drop table t2;
create table t1 (id int primary key) engine ndb;
insert into t1 values (1), (2), (3);
create table t2 (id int primary key) engine ndb;
insert into t2 select id from t1;
create trigger kaboom after delete on t1
for each row begin
delete from t2 where id=old.id;
end|
select * from t1 order by id;
id
1
2
3
delete from t1 where id in (1,2);
select * from t2 order by id;
id
3
drop trigger kaboom;
drop table t1;
mysql-test/t/ndb_read_multi_range.test
View file @
822fd77a
...
@@ -291,3 +291,25 @@ insert into t2 values (1,1), (10,10);
...
@@ -291,3 +291,25 @@ insert into t2 values (1,1), (10,10);
select
*
from
t2
use
index
(ab) where a in(1,10) order by a
;
select
*
from
t2
use
index
(ab) where a in(1,10) order by a
;
drop
table
t2
;
drop
table
t2
;
#bug#30337
create
table
t1
(
id
int
primary
key
)
engine
ndb
;
insert
into
t1
values
(
1
),
(
2
),
(
3
);
create
table
t2
(
id
int
primary
key
)
engine
ndb
;
insert
into
t2
select
id
from
t1
;
delimiter
|
;
create
trigger
kaboom
after
delete
on
t1
for
each
row
begin
delete
from
t2
where
id
=
old
.
id
;
end
|
delimiter
;
|
select
*
from
t1
order
by
id
;
delete
from
t1
where
id
in
(
1
,
2
);
select
*
from
t2
order
by
id
;
drop
trigger
kaboom
;
drop
table
t1
;
sql/ha_ndbcluster.cc
View file @
822fd77a
...
@@ -6470,7 +6470,8 @@ ha_ndbcluster::read_multi_range_first(KEY_MULTI_RANGE **found_range_p,
...
@@ -6470,7 +6470,8 @@ ha_ndbcluster::read_multi_range_first(KEY_MULTI_RANGE **found_range_p,
if
(
uses_blob_value
(
m_retrieve_all_fields
)
||
if
(
uses_blob_value
(
m_retrieve_all_fields
)
||
(
cur_index_type
==
UNIQUE_INDEX
&&
(
cur_index_type
==
UNIQUE_INDEX
&&
has_null_in_unique_index
(
active_index
)
&&
has_null_in_unique_index
(
active_index
)
&&
null_value_index_search
(
ranges
,
ranges
+
range_count
,
buffer
)))
null_value_index_search
(
ranges
,
ranges
+
range_count
,
buffer
))
||
m_delete_cannot_batch
||
m_update_cannot_batch
)
{
{
m_disable_multi_read
=
TRUE
;
m_disable_multi_read
=
TRUE
;
DBUG_RETURN
(
handler
::
read_multi_range_first
(
found_range_p
,
DBUG_RETURN
(
handler
::
read_multi_range_first
(
found_range_p
,
...
...
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