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
66822f16
Commit
66822f16
authored
Feb 11, 2017
by
Elena Stepanova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Follow-up to MDEV-10731 - fix the broken test
parent
de9963b7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
mysql-test/r/update_innodb.result
mysql-test/r/update_innodb.result
+2
-2
mysql-test/t/update_innodb.test
mysql-test/t/update_innodb.test
+2
-2
No files found.
mysql-test/r/update_innodb.result
View file @
66822f16
...
...
@@ -45,13 +45,13 @@ INDEX idx_c_id (c_id))COLLATE = 'utf8_general_ci' ENGINE = InnoDB;
INSERT INTO t1 (b_id, c_id) VALUES (NULL, NULL);
INSERT INTO t2 (c_id) VALUES (NULL);
INSERT INTO t2 (c_id) VALUES (NULL);
SELECT * FROM
T
1;
SELECT * FROM
t
1;
a_id b_id c_id
1 NULL NULL
SELECT t2.b_id FROM t1,t2 WHERE t2.c_id = t1.c_id;
b_id
UPDATE t1 SET b_id = (SELECT t2.b_id FROM t2 t2 WHERE t2.c_id = t1.c_id);
SELECT * FROM
T
1;
SELECT * FROM
t
1;
a_id b_id c_id
1 NULL NULL
drop table t1,t2;
mysql-test/t/update_innodb.test
View file @
66822f16
...
...
@@ -58,8 +58,8 @@ INSERT INTO t1 (b_id, c_id) VALUES (NULL, NULL);
INSERT
INTO
t2
(
c_id
)
VALUES
(
NULL
);
INSERT
INTO
t2
(
c_id
)
VALUES
(
NULL
);
SELECT
*
FROM
T
1
;
SELECT
*
FROM
t
1
;
SELECT
t2
.
b_id
FROM
t1
,
t2
WHERE
t2
.
c_id
=
t1
.
c_id
;
UPDATE
t1
SET
b_id
=
(
SELECT
t2
.
b_id
FROM
t2
t2
WHERE
t2
.
c_id
=
t1
.
c_id
);
SELECT
*
FROM
T
1
;
SELECT
*
FROM
t
1
;
drop
table
t1
,
t2
;
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