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
32658672
Commit
32658672
authored
Nov 21, 2002
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
after merging fix
parent
ee88c36a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
include/mysqld_error.h
include/mysqld_error.h
+1
-1
mysql-test/t/subselect.test
mysql-test/t/subselect.test
+4
-4
No files found.
include/mysqld_error.h
View file @
32658672
...
...
@@ -261,5 +261,5 @@
#define ER_CORRUPT_HELP_DB 1242
#define ER_CYCLIC_REFERENCE 1243
#define ER_AUTO_CONVERT 1244
#define ER_ILLEGAL_REFERENCE 124
6
#define ER_ILLEGAL_REFERENCE 124
5
#define ER_ERROR_MESSAGES 246
mysql-test/t/subselect.test
View file @
32658672
select
(
select
2
);
SELECT
(
SELECT
1
)
UNION
SELECT
(
SELECT
2
);
SELECT
(
SELECT
(
SELECT
0
UNION
SELECT
0
));
--
error
124
4
--
error
124
5
SELECT
(
SELECT
1
FROM
(
SELECT
1
)
HAVING
a
=
1
)
as
a
;
--
error
124
4
--
error
124
5
SELECT
(
SELECT
1
FROM
(
SELECT
1
)
HAVING
b
=
1
)
as
a
,(
SELECT
1
FROM
(
SELECT
1
)
HAVING
a
=
1
)
as
b
;
drop
table
if
exists
t1
,
t2
,
t3
,
t4
,
t5
,
attend
,
clinic
,
inscrit
;
create
table
t1
(
a
int
);
...
...
@@ -13,7 +13,7 @@ create table t4 (a int, b int);
insert
into
t1
values
(
2
);
insert
into
t2
values
(
1
,
7
),(
2
,
7
);
insert
into
t4
values
(
4
,
8
),(
3
,
8
),(
5
,
9
);
--
error
124
4
--
error
124
5
select
(
select
a
from
t1
where
t1
.
a
=
a1
)
as
a2
,
(
select
b
from
t2
where
t2
.
b
=
a2
)
as
a1
;
select
(
select
a
from
t1
where
t1
.
a
=
t2
.
a
),
a
from
t2
;
select
(
select
a
from
t1
where
t1
.
a
=
t2
.
b
),
a
from
t2
;
...
...
@@ -178,7 +178,7 @@ CREATE TABLE `threadhardwarefr7` (
UNIQUE
KEY
`numreponse`
(
`numreponse`
),
KEY
`pseudo`
(
`pseudo`
,
`numeropost`
)
)
TYPE
=
MyISAM
;
--
error
124
4
--
error
124
5
SELECT
(
SELECT
numeropost
FROM
threadhardwarefr7
HAVING
numreponse
=
a
),
numreponse
FROM
(
SELECT
*
FROM
threadhardwarefr7
)
as
a
;
--
error
1054
SELECT
numreponse
,
(
SELECT
numeropost
FROM
threadhardwarefr7
HAVING
numreponse
=
a
)
FROM
(
SELECT
*
FROM
threadhardwarefr7
)
as
a
;
...
...
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