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
d6b646d4
Commit
d6b646d4
authored
Nov 23, 2002
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
after merging fix (update SCRUM?)
parent
20244640
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
4 deletions
+3
-4
mysql-test/t/subselect.test
mysql-test/t/subselect.test
+1
-1
sql/sql_lex.cc
sql/sql_lex.cc
+1
-1
sql/sql_update.cc
sql/sql_update.cc
+0
-1
sql/sql_yacc.yy
sql/sql_yacc.yy
+1
-1
No files found.
mysql-test/t/subselect.test
View file @
d6b646d4
...
...
@@ -114,6 +114,7 @@ EXPLAIN SELECT DISTINCT date FROM searchconthardwarefr3 WHERE date='2002-08-03';
EXPLAIN
SELECT
(
SELECT
DISTINCT
date
FROM
searchconthardwarefr3
WHERE
date
=
'2002-08-03'
);
SELECT
DISTINCT
date
FROM
searchconthardwarefr3
WHERE
date
=
'2002-08-03'
;
SELECT
(
SELECT
DISTINCT
date
FROM
searchconthardwarefr3
WHERE
date
=
'2002-08-03'
);
SELECT
1
FROM
searchconthardwarefr3
WHERE
1
=
(
SELECT
1
UNION
SELECT
1
)
UNION
ALL
SELECT
1
;
--
error
1240
SELECT
1
FROM
searchconthardwarefr3
WHERE
1
=
(
SELECT
1
UNION
ALL
SELECT
1
)
UNION
SELECT
1
;
EXPLAIN
SELECT
1
FROM
searchconthardwarefr3
WHERE
1
=
(
SELECT
1
UNION
SELECT
1
);
...
...
@@ -181,7 +182,6 @@ EXPLAIN SELECT numreponse FROM threadhardwarefr7 WHERE numeropost='1' AND numrep
EXPLAIN
SELECT
MAX
(
numreponse
)
FROM
threadhardwarefr7
WHERE
numeropost
=
'1'
;
EXPLAIN
SELECT
numreponse
FROM
threadhardwarefr7
WHERE
numeropost
=
'1'
AND
numreponse
=
(
SELECT
MAX
(
numreponse
)
FROM
threadhardwarefr7
WHERE
numeropost
=
'1'
);
drop
table
if
exists
threadhardwarefrtest7
;
drop
table
searchconthardwarefr3
;
#update with subselects
create
table
t1
(
a
int
NOT
NULL
,
b
int
,
primary
key
(
a
));
...
...
sql/sql_lex.cc
View file @
d6b646d4
...
...
@@ -149,7 +149,7 @@ LEX *lex_start(THD *thd, uchar *buf,uint length)
lex
->
select_lex
.
expr_list
.
empty
();
lex
->
select_lex
.
ftfunc_list_alloc
.
empty
();
lex
->
select_lex
.
ftfunc_list
=
&
lex
->
select_lex
.
ftfunc_list_alloc
;
lex
->
select
=
&
lex
->
select_lex
;
lex
->
current_
select
=
&
lex
->
select_lex
;
lex
->
convert_set
=
(
lex
->
thd
=
thd
)
->
variables
.
convert_set
;
lex
->
yacc_yyss
=
lex
->
yacc_yyvs
=
0
;
lex
->
ignore_space
=
test
(
thd
->
sql_mode
&
MODE_IGNORE_SPACE
);
...
...
sql/sql_update.cc
View file @
d6b646d4
...
...
@@ -68,7 +68,6 @@ int mysql_update(THD *thd,
LINT_INIT
(
used_index
);
LINT_INIT
(
timestamp_query_id
);
table_list
->
lock_type
=
lock_type
;
if
((
open_and_lock_tables
(
thd
,
table_list
)))
DBUG_RETURN
(
-
1
);
fix_tables_pointers
(
&
thd
->
lex
.
select_lex
);
...
...
sql/sql_yacc.yy
View file @
d6b646d4
...
...
@@ -1631,7 +1631,7 @@ select_init:
select_part2:
{
LEX *lex=Lex;
if (lex->select == &lex->select_lex)
if (lex->
current_
select == &lex->select_lex)
lex->lock_option= TL_READ; /* Only for global SELECT */
mysql_init_select(lex);
}
...
...
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