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
5e65456c
Commit
5e65456c
authored
Aug 10, 2005
by
evgen@moonbone.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0
into moonbone.local:/work/mysql-5.0-bug-12340
parents
c63ebf94
2a025ffb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
mysql-test/r/innodb.result
mysql-test/r/innodb.result
+8
-0
mysql-test/t/innodb.test
mysql-test/t/innodb.test
+10
-0
sql/ha_innodb.cc
sql/ha_innodb.cc
+2
-2
No files found.
mysql-test/r/innodb.result
View file @
5e65456c
...
@@ -2475,3 +2475,11 @@ SELECT GRADE FROM t1 WHERE GRADE= 151;
...
@@ -2475,3 +2475,11 @@ SELECT GRADE FROM t1 WHERE GRADE= 151;
GRADE
GRADE
151
151
DROP TABLE t1;
DROP TABLE t1;
create table t1 (f1 varchar(10), f2 varchar(10), primary key (f1,f2)) engine=innodb;
create table t2 (f3 varchar(10), f4 varchar(10), key (f4)) engine=innodb;
insert into t2 values ('aa','cc');
insert into t1 values ('aa','bb'),('aa','cc');
delete t1 from t1,t2 where f1=f3 and f4='cc';
select * from t1;
f1 f2
drop table t1,t2;
mysql-test/t/innodb.test
View file @
5e65456c
...
@@ -1394,3 +1394,13 @@ SELECT GRADE FROM t1 WHERE GRADE > 160 AND GRADE < 300;
...
@@ -1394,3 +1394,13 @@ SELECT GRADE FROM t1 WHERE GRADE > 160 AND GRADE < 300;
SELECT
GRADE
FROM
t1
WHERE
GRADE
=
151
;
SELECT
GRADE
FROM
t1
WHERE
GRADE
=
151
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
#
# Bug #12340 multitable delete deletes only one record
#
create
table
t1
(
f1
varchar
(
10
),
f2
varchar
(
10
),
primary
key
(
f1
,
f2
))
engine
=
innodb
;
create
table
t2
(
f3
varchar
(
10
),
f4
varchar
(
10
),
key
(
f4
))
engine
=
innodb
;
insert
into
t2
values
(
'aa'
,
'cc'
);
insert
into
t1
values
(
'aa'
,
'bb'
),(
'aa'
,
'cc'
);
delete
t1
from
t1
,
t2
where
f1
=
f3
and
f4
=
'cc'
;
select
*
from
t1
;
drop
table
t1
,
t2
;
sql/ha_innodb.cc
View file @
5e65456c
...
@@ -6852,8 +6852,8 @@ ha_innobase::cmp_ref(
...
@@ -6852,8 +6852,8 @@ ha_innobase::cmp_ref(
return
(
result
);
return
(
result
);
}
}
ref1
+=
key_part
->
length
;
ref1
+=
key_part
->
store_
length
;
ref2
+=
key_part
->
length
;
ref2
+=
key_part
->
store_
length
;
}
}
return
(
0
);
return
(
0
);
...
...
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