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
e21e41fc
Commit
e21e41fc
authored
May 21, 2004
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-4.1/
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
parents
cb07a07e
11128fb6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
sql/sql_union.cc
sql/sql_union.cc
+10
-7
No files found.
sql/sql_union.cc
View file @
e21e41fc
...
@@ -355,15 +355,18 @@ int st_select_lex_unit::exec()
...
@@ -355,15 +355,18 @@ int st_select_lex_unit::exec()
if
(
uncacheable
||
!
item
||
!
item
->
assigned
()
||
describe
)
if
(
uncacheable
||
!
item
||
!
item
->
assigned
()
||
describe
)
{
{
if
(
optimized
&&
item
&&
item
->
assigned
())
if
(
optimized
&&
item
)
{
if
(
item
->
assigned
())
{
{
item
->
assigned
(
0
);
// We will reinit & rexecute unit
item
->
assigned
(
0
);
// We will reinit & rexecute unit
item
->
reset
();
item
->
reset
();
table
->
file
->
delete_all_rows
();
table
->
file
->
delete_all_rows
();
}
}
if
(
union_distinct
&&
table
->
file
->
enable_indexes
(
HA_KEY_SWITCH_ALL
)
&&
/* re-enabling indexes for next subselect iteration */
!
describe
)
if
(
union_distinct
&&
table
->
file
->
enable_indexes
(
HA_KEY_SWITCH_ALL
))
DBUG_RETURN
(
1
);
// For sub-selects
DBUG_ASSERT
(
1
);
}
for
(
SELECT_LEX
*
sl
=
select_cursor
;
sl
;
sl
=
sl
->
next_select
())
for
(
SELECT_LEX
*
sl
=
select_cursor
;
sl
;
sl
=
sl
->
next_select
())
{
{
ha_rows
records_at_start
=
0
;
ha_rows
records_at_start
=
0
;
...
...
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