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
4d4ddfde
Commit
4d4ddfde
authored
Jun 28, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merging
test moved to other bug
parent
e2d2432b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
mysql-test/r/subselect.result
mysql-test/r/subselect.result
+3
-4
mysql-test/t/subselect.test
mysql-test/t/subselect.test
+0
-1
No files found.
mysql-test/r/subselect.result
View file @
4d4ddfde
...
...
@@ -608,7 +608,9 @@ x
3
3
INSERT INTO t1 (x) select (SELECT SUM(x)+2 FROM t1) FROM t2;
Unknown column 'x' in 'field list'
ERROR HY000: You can't specify target table 't1' for update in FROM clause
INSERT DELAYED INTO t1 (x) VALUES ((SELECT SUM(x) FROM t2));
ERROR 42S22: Unknown column 'x' in 'field list'
INSERT DELAYED INTO t1 (x) VALUES ((SELECT SUM(a) FROM t2));
select * from t1;
x
...
...
@@ -1151,9 +1153,6 @@ INSERT INTO t1 VALUES (1,0,NULL,NULL),(2,0,NULL,NULL);
SELECT DISTINCT REF_ID FROM t1 WHERE ID= (SELECT DISTINCT REF_ID FROM t1 WHERE ID=2);
REF_ID
DROP TABLE t1;
(SELECT 1 as a) UNION (SELECT 1) ORDER BY (SELECT a+0);
a
1
CREATE TABLE `t1` (
`id` mediumint(8) unsigned NOT NULL auto_increment,
`pseudo` varchar(35) NOT NULL default '',
...
...
mysql-test/t/subselect.test
View file @
4d4ddfde
...
...
@@ -741,7 +741,6 @@ DROP TABLE t1;
#
# reduced subselect in ORDER BY & GROUP BY clauses
#
(
SELECT
1
as
a
)
UNION
(
SELECT
1
)
ORDER
BY
(
SELECT
a
+
0
);
CREATE
TABLE
`t1`
(
`id`
mediumint
(
8
)
unsigned
NOT
NULL
auto_increment
,
...
...
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