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
53a9af8f
Commit
53a9af8f
authored
Dec 16, 2004
by
timour@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test for BUG#6054. The bug itsel is fixed by the fix for #5837.
parent
cd874340
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
mysql-test/r/update.result
mysql-test/r/update.result
+6
-0
mysql-test/t/update.test
mysql-test/t/update.test
+9
-0
No files found.
mysql-test/r/update.result
View file @
53a9af8f
...
...
@@ -203,3 +203,9 @@ colC colA colD colE colF
3 4433 10005 492 500
DROP TABLE t1;
DROP TABLE t2;
drop table if exists t1, t2;
create table t1 (c1 int, c2 char(6), c3 int);
create table t2 (c1 int, c2 char(6));
insert into t1 values (1, "t1c2-1", 10), (2, "t1c2-2", 20);
update t1 left join t2 on t1.c1 = t2.c1 set t2.c2 = "t2c2-1";
update t1 left join t2 on t1.c1 = t2.c1 set t2.c2 = "t2c2-1" where t1.c3 = 10;
mysql-test/t/update.test
View file @
53a9af8f
...
...
@@ -155,3 +155,12 @@ SELECT * FROM t2;
DROP
TABLE
t1
;
DROP
TABLE
t2
;
#
# Bug #6054
#
drop
table
if
exists
t1
,
t2
;
create
table
t1
(
c1
int
,
c2
char
(
6
),
c3
int
);
create
table
t2
(
c1
int
,
c2
char
(
6
));
insert
into
t1
values
(
1
,
"t1c2-1"
,
10
),
(
2
,
"t1c2-2"
,
20
);
update
t1
left
join
t2
on
t1
.
c1
=
t2
.
c1
set
t2
.
c2
=
"t2c2-1"
;
update
t1
left
join
t2
on
t1
.
c1
=
t2
.
c1
set
t2
.
c2
=
"t2c2-1"
where
t1
.
c3
=
10
;
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