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
a3a01679
Commit
a3a01679
authored
Oct 28, 2002
by
peter@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/pz/mysql/mysql-4.1-root
into mysql.com:/home/pz/mysql/mysql-4.1
parents
86f0ce87
7777d2b8
Changes
27
Show whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
36 additions
and
6 deletions
+36
-6
mysql-test/r/subselect.result
mysql-test/r/subselect.result
+3
-0
mysql-test/t/subselect.test
mysql-test/t/subselect.test
+1
-1
sql/share/czech/errmsg.txt
sql/share/czech/errmsg.txt
+1
-0
sql/share/danish/errmsg.txt
sql/share/danish/errmsg.txt
+1
-0
sql/share/dutch/errmsg.txt
sql/share/dutch/errmsg.txt
+1
-0
sql/share/estonian/errmsg.txt
sql/share/estonian/errmsg.txt
+1
-0
sql/share/french/errmsg.txt
sql/share/french/errmsg.txt
+1
-0
sql/share/german/errmsg.txt
sql/share/german/errmsg.txt
+1
-0
sql/share/greek/errmsg.txt
sql/share/greek/errmsg.txt
+1
-0
sql/share/hungarian/errmsg.txt
sql/share/hungarian/errmsg.txt
+1
-0
sql/share/italian/errmsg.txt
sql/share/italian/errmsg.txt
+1
-0
sql/share/japanese/errmsg.txt
sql/share/japanese/errmsg.txt
+1
-0
sql/share/korean/errmsg.txt
sql/share/korean/errmsg.txt
+1
-0
sql/share/norwegian-ny/errmsg.txt
sql/share/norwegian-ny/errmsg.txt
+1
-0
sql/share/norwegian/errmsg.txt
sql/share/norwegian/errmsg.txt
+1
-0
sql/share/polish/errmsg.txt
sql/share/polish/errmsg.txt
+1
-0
sql/share/portuguese/errmsg.txt
sql/share/portuguese/errmsg.txt
+1
-0
sql/share/romanian/errmsg.txt
sql/share/romanian/errmsg.txt
+1
-0
sql/share/russian/errmsg.txt
sql/share/russian/errmsg.txt
+1
-0
sql/share/serbian/errmsg.txt
sql/share/serbian/errmsg.txt
+1
-0
sql/share/slovak/errmsg.txt
sql/share/slovak/errmsg.txt
+1
-0
sql/share/spanish/errmsg.txt
sql/share/spanish/errmsg.txt
+1
-0
sql/share/swedish/errmsg.txt
sql/share/swedish/errmsg.txt
+1
-0
sql/share/ukrainian/errmsg.txt
sql/share/ukrainian/errmsg.txt
+1
-0
sql/sql_lex.cc
sql/sql_lex.cc
+1
-1
sql/sql_lex.h
sql/sql_lex.h
+3
-2
sql/sql_union.cc
sql/sql_union.cc
+6
-2
No files found.
mysql-test/r/subselect.result
View file @
a3a01679
...
...
@@ -5,6 +5,9 @@ SELECT (SELECT 1) UNION SELECT (SELECT 2);
(SELECT 1)
1
2
SELECT (SELECT (SELECT 0 UNION SELECT 0));
(SELECT (SELECT 0 UNION SELECT 0))
0
drop table if exists t1,t2,t3,t4,t5,attend,clinic,inscrit;
create table t1 (a int);
create table t2 (a int, b int);
...
...
mysql-test/t/subselect.test
View file @
a3a01679
select
(
select
2
);
SELECT
(
SELECT
1
)
UNION
SELECT
(
SELECT
2
);
SELECT
(
SELECT
(
SELECT
0
UNION
SELECT
0
));
drop
table
if
exists
t1
,
t2
,
t3
,
t4
,
t5
,
attend
,
clinic
,
inscrit
;
create
table
t1
(
a
int
);
create
table
t2
(
a
int
,
b
int
);
...
...
sql/share/czech/errmsg.txt
View file @
a3a01679
...
...
@@ -251,3 +251,4 @@
"Key reference and table reference doesn't match",
"Subselect returns more than 1 field",
"Subselect returns more than 1 record",
"Unknown prepared statement handler (%ld) given to %s",
sql/share/danish/errmsg.txt
View file @
a3a01679
...
...
@@ -245,3 +245,4 @@
"Key reference and table reference doesn't match",
"Subselect returns more than 1 field",
"Subselect returns more than 1 record",
"Unknown prepared statement handler (%ld) given to %s",
sql/share/dutch/errmsg.txt
View file @
a3a01679
...
...
@@ -253,3 +253,4 @@
"Key reference and table reference doesn't match",
"Subselect returns more than 1 field",
"Subselect returns more than 1 record",
"Unknown prepared statement handler (%ld) given to %s",
sql/share/estonian/errmsg.txt
View file @
a3a01679
...
...
@@ -247,3 +247,4 @@
"Key reference and table reference doesn't match",
"Subselect returns more than 1 field",
"Subselect returns more than 1 record",
"Unknown prepared statement handler (%ld) given to %s",
sql/share/french/errmsg.txt
View file @
a3a01679
...
...
@@ -242,3 +242,4 @@
"Key reference and table reference doesn't match",
"Subselect returns more than 1 field",
"Subselect returns more than 1 record",
"Unknown prepared statement handler (%ld) given to %s",
sql/share/german/errmsg.txt
View file @
a3a01679
...
...
@@ -245,3 +245,4 @@
"Key reference and table reference doesn't match",
"Subselect return more than 1 field",
"Subselect return more than 1 record",
"Unknown prepared statement handler (%ld) given to %s",
sql/share/greek/errmsg.txt
View file @
a3a01679
...
...
@@ -242,3 +242,4 @@
"Key reference and table reference doesn't match",
"Subselect returns more than 1 field",
"Subselect returns more than 1 record",
"Unknown prepared statement handler (%ld) given to %s",
sql/share/hungarian/errmsg.txt
View file @
a3a01679
...
...
@@ -244,3 +244,4 @@
"Key reference and table reference doesn't match",
"Subselect returns more than 1 field",
"Subselect returns more than 1 record",
"Unknown prepared statement handler (%ld) given to %s",
sql/share/italian/errmsg.txt
View file @
a3a01679
...
...
@@ -242,3 +242,4 @@
"Key reference and table reference doesn't match",
"Subselect returns more than 1 field",
"Subselect returns more than 1 record",
"Unknown prepared statement handler (%ld) given to %s",
sql/share/japanese/errmsg.txt
View file @
a3a01679
...
...
@@ -244,3 +244,4 @@
"Key reference and table reference doesn't match",
"Subselect returns more than 1 field",
"Subselect returns more than 1 record",
"Unknown prepared statement handler (%ld) given to %s",
sql/share/korean/errmsg.txt
View file @
a3a01679
...
...
@@ -242,3 +242,4 @@
"Key reference and table reference doesn't match",
"Subselect returns more than 1 field",
"Subselect returns more than 1 record",
"Unknown prepared statement handler (%ld) given to %s",
sql/share/norwegian-ny/errmsg.txt
View file @
a3a01679
...
...
@@ -244,3 +244,4 @@
"Key reference and table reference doesn't match",
"Subselect returns more than 1 field",
"Subselect returns more than 1 record",
"Unknown prepared statement handler (%ld) given to %s",
sql/share/norwegian/errmsg.txt
View file @
a3a01679
...
...
@@ -244,3 +244,4 @@
"Key reference and table reference doesn't match",
"Subselect returns more than 1 field",
"Subselect returns more than 1 record",
"Unknown prepared statement handler (%ld) given to %s",
sql/share/polish/errmsg.txt
View file @
a3a01679
...
...
@@ -246,3 +246,4 @@
"Key reference and table reference doesn't match",
"Subselect returns more than 1 field",
"Subselect returns more than 1 record",
"Unknown prepared statement handler (%ld) given to %s",
sql/share/portuguese/errmsg.txt
View file @
a3a01679
...
...
@@ -242,3 +242,4 @@
"Key reference and table reference doesn't match",
"Subselect returns more than 1 field",
"Subselect returns more than 1 record",
"Unknown prepared statement handler (%ld) given to %s",
sql/share/romanian/errmsg.txt
View file @
a3a01679
...
...
@@ -246,3 +246,4 @@
"Key reference and table reference doesn't match",
"Subselect returns more than 1 field",
"Subselect returns more than 1 record",
"Unknown prepared statement handler (%ld) given to %s",
sql/share/russian/errmsg.txt
View file @
a3a01679
...
...
@@ -245,3 +245,4 @@
"Key reference and table reference doesn't match",
" ",
" ",
"Unknown prepared statement handler (%ld) given to %s",
sql/share/serbian/errmsg.txt
View file @
a3a01679
...
...
@@ -238,3 +238,4 @@
"Key reference and table reference doesn't match",
"Subselect returns more than 1 field",
"Subselect returns more than 1 record",
"Unknown prepared statement handler (%ld) given to %s",
sql/share/slovak/errmsg.txt
View file @
a3a01679
...
...
@@ -250,3 +250,4 @@
"Key reference and table reference doesn't match",
"Subselect returns more than 1 field",
"Subselect returns more than 1 record",
"Unknown prepared statement handler (%ld) given to %s",
sql/share/spanish/errmsg.txt
View file @
a3a01679
...
...
@@ -243,3 +243,4 @@
"Key reference and table reference doesn't match",
"Subselect returns more than 1 field",
"Subselect returns more than 1 record",
"Unknown prepared statement handler (%ld) given to %s",
sql/share/swedish/errmsg.txt
View file @
a3a01679
...
...
@@ -242,3 +242,4 @@
"Key reference and table reference doesn't match",
"Subselect returns more than 1 field",
"Subselect returns more than 1 record",
"Unknown prepared statement handler (%ld) given to %s",
sql/share/ukrainian/errmsg.txt
View file @
a3a01679
...
...
@@ -247,3 +247,4 @@
"Key reference and table reference doesn't match",
"i i i 1 ",
"i i i 1 ",
"Unknown prepared statement handler (%ld) given to %s",
sql/sql_lex.cc
View file @
a3a01679
...
...
@@ -945,7 +945,7 @@ void st_select_lex_unit::init_query()
select_limit_cnt
=
HA_POS_ERROR
;
offset_limit_cnt
=
0
;
union_option
=
0
;
prepared
=
optimized
=
0
;
prepared
=
optimized
=
executed
=
0
;
item
=
0
;
}
...
...
sql/sql_lex.h
View file @
a3a01679
...
...
@@ -227,8 +227,9 @@ class st_select_lex_unit: public st_select_lex_node {
select_result
*
result
;
int
res
;
bool
describe
,
found_rows_for_union
,
prepared
,
//prepare phase already performed for UNION (unit)
optimized
;
// optimize phase already performed for UNION (unit)
prepared
,
// prepare phase already performed for UNION (unit)
optimized
,
// optimize phase already performed for UNION (unit)
executed
;
// already executed
public:
/*
Pointer to 'last' select or pointer to unit where stored
...
...
sql/sql_union.cc
View file @
a3a01679
...
...
@@ -200,7 +200,11 @@ int st_select_lex_unit::exec()
DBUG_ENTER
(
"st_select_lex_unit::exec"
);
SELECT_LEX
*
lex_select_save
=
thd
->
lex
.
select
;
if
(
depended
||
!
item
||
!
item
->
assigned
())
if
(
executed
&&
!
depended
)
DBUG_RETURN
(
0
);
executed
=
1
;
if
(
depended
||
!
item
||
!
item
->
assigned
())
{
if
(
optimized
&&
item
&&
item
->
assigned
())
item
->
assigned
(
0
);
// We will reinit & rexecute unit
...
...
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