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
9584c675
Commit
9584c675
authored
Oct 04, 2017
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-12874 UPDATE statements with the same source and target
update engine tests
parent
61b2618d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
18 deletions
+0
-18
mysql-test/suite/engines/funcs/r/sq_error.result
mysql-test/suite/engines/funcs/r/sq_error.result
+0
-8
mysql-test/suite/engines/funcs/t/sq_error.test
mysql-test/suite/engines/funcs/t/sq_error.test
+0
-8
mysql-test/suite/engines/iuds/r/update_delete_number.result
mysql-test/suite/engines/iuds/r/update_delete_number.result
+0
-1
mysql-test/suite/engines/iuds/t/update_delete_number.test
mysql-test/suite/engines/iuds/t/update_delete_number.test
+0
-1
No files found.
mysql-test/suite/engines/funcs/r/sq_error.result
View file @
9584c675
...
...
@@ -15,8 +15,6 @@ ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOM
SELECT * FROM t1 WHERE c1 = (SELECT c1 FROM t2);
ERROR 21000: Subquery returns more than 1 row
UPDATE t1 SET c2 = (SELECT MAX(c1) FROM t2);
UPDATE t1 SET c1 = (SELECT MAX(c1) FROM t1);
ERROR HY000: Table 't1' is specified twice, both as a target for 'UPDATE' and as a separate source for data
DROP TABLE t1;
DROP TABLE t2;
CREATE TABLE t1 (c1 INT, c2 VARCHAR(100),c3 FLOAT);
...
...
@@ -34,8 +32,6 @@ ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOM
SELECT * FROM t1 WHERE c1 = (SELECT c1 FROM t2);
ERROR 21000: Subquery returns more than 1 row
UPDATE t1 SET c2 = (SELECT MAX(c1) FROM t2);
UPDATE t1 SET c1 = (SELECT MAX(c1) FROM t1);
ERROR HY000: Table 't1' is specified twice, both as a target for 'UPDATE' and as a separate source for data
DROP TABLE t1;
DROP TABLE t2;
CREATE TABLE t1 (c1 INT, c2 BINARY(100),c3 FLOAT);
...
...
@@ -53,8 +49,6 @@ ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOM
SELECT * FROM t1 WHERE c1 = (SELECT c1 FROM t2);
ERROR 21000: Subquery returns more than 1 row
UPDATE t1 SET c2 = (SELECT MAX(c1) FROM t2);
UPDATE t1 SET c1 = (SELECT MAX(c1) FROM t1);
ERROR HY000: Table 't1' is specified twice, both as a target for 'UPDATE' and as a separate source for data
DROP TABLE t1;
DROP TABLE t2;
CREATE TABLE t1 (c1 INT, c2 VARBINARY(100),c3 FLOAT);
...
...
@@ -72,7 +66,5 @@ ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOM
SELECT * FROM t1 WHERE c1 = (SELECT c1 FROM t2);
ERROR 21000: Subquery returns more than 1 row
UPDATE t1 SET c2 = (SELECT MAX(c1) FROM t2);
UPDATE t1 SET c1 = (SELECT MAX(c1) FROM t1);
ERROR HY000: Table 't1' is specified twice, both as a target for 'UPDATE' and as a separate source for data
DROP TABLE t1;
DROP TABLE t2;
mysql-test/suite/engines/funcs/t/sq_error.test
View file @
9584c675
...
...
@@ -19,8 +19,6 @@ SELECT (SELECT c1, c2 FROM t2) FROM t1;
--
error
1242
SELECT
*
FROM
t1
WHERE
c1
=
(
SELECT
c1
FROM
t2
);
UPDATE
t1
SET
c2
=
(
SELECT
MAX
(
c1
)
FROM
t2
);
--
error
1093
UPDATE
t1
SET
c1
=
(
SELECT
MAX
(
c1
)
FROM
t1
);
DROP
TABLE
t1
;
DROP
TABLE
t2
;
CREATE
TABLE
t1
(
c1
INT
,
c2
VARCHAR
(
100
),
c3
FLOAT
);
...
...
@@ -38,8 +36,6 @@ SELECT (SELECT c1, c2 FROM t2) FROM t1;
--
error
1242
SELECT
*
FROM
t1
WHERE
c1
=
(
SELECT
c1
FROM
t2
);
UPDATE
t1
SET
c2
=
(
SELECT
MAX
(
c1
)
FROM
t2
);
--
error
1093
UPDATE
t1
SET
c1
=
(
SELECT
MAX
(
c1
)
FROM
t1
);
DROP
TABLE
t1
;
DROP
TABLE
t2
;
CREATE
TABLE
t1
(
c1
INT
,
c2
BINARY
(
100
),
c3
FLOAT
);
...
...
@@ -57,8 +53,6 @@ SELECT (SELECT c1, c2 FROM t2) FROM t1;
--
error
1242
SELECT
*
FROM
t1
WHERE
c1
=
(
SELECT
c1
FROM
t2
);
UPDATE
t1
SET
c2
=
(
SELECT
MAX
(
c1
)
FROM
t2
);
--
error
1093
UPDATE
t1
SET
c1
=
(
SELECT
MAX
(
c1
)
FROM
t1
);
DROP
TABLE
t1
;
DROP
TABLE
t2
;
CREATE
TABLE
t1
(
c1
INT
,
c2
VARBINARY
(
100
),
c3
FLOAT
);
...
...
@@ -76,8 +70,6 @@ SELECT (SELECT c1, c2 FROM t2) FROM t1;
--
error
1242
SELECT
*
FROM
t1
WHERE
c1
=
(
SELECT
c1
FROM
t2
);
UPDATE
t1
SET
c2
=
(
SELECT
MAX
(
c1
)
FROM
t2
);
--
error
1093
UPDATE
t1
SET
c1
=
(
SELECT
MAX
(
c1
)
FROM
t1
);
DROP
TABLE
t1
;
DROP
TABLE
t2
;
mysql-test/suite/engines/iuds/r/update_delete_number.result
View file @
9584c675
...
...
@@ -980,7 +980,6 @@ drop table mt1, mt2, mt3;
create table mt1 (col1 int);
create table mt2 (col1 int);
update mt1,mt2 set mt1.col1 = (select max(col1) from mt1) where mt1.col1 = mt2.col1;
ERROR HY000: Table 'mt1' is specified twice, both as a target for 'UPDATE' and as a separate source for data
delete mt1 from mt1,mt2 where mt1.col1 < (select max(col1) from mt1) and mt1.col1 = mt2.col1;
ERROR HY000: Table 'mt1' is specified twice, both as a target for 'DELETE' and as a separate source for data
drop table mt1,mt2;
...
...
mysql-test/suite/engines/iuds/t/update_delete_number.test
View file @
9584c675
...
...
@@ -495,7 +495,6 @@ drop table mt1, mt2, mt3;
# multi* unique updating table check
create
table
mt1
(
col1
int
);
create
table
mt2
(
col1
int
);
--
error
ER_UPDATE_TABLE_USED
update
mt1
,
mt2
set
mt1
.
col1
=
(
select
max
(
col1
)
from
mt1
)
where
mt1
.
col1
=
mt2
.
col1
;
--
error
ER_UPDATE_TABLE_USED
delete
mt1
from
mt1
,
mt2
where
mt1
.
col1
<
(
select
max
(
col1
)
from
mt1
)
and
mt1
.
col1
=
mt2
.
col1
;
...
...
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