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
c25d959f
Commit
c25d959f
authored
Mar 31, 2003
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Plain Diff
Merge sinisa@bk-internal.mysql.com:/home/bk/mysql-4.1
into sinisa.nasamreza.org:/mnt/work/mysql-4.1
parents
446f6331
c027af64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
sql/sql_union.cc
sql/sql_union.cc
+4
-5
No files found.
sql/sql_union.cc
View file @
c25d959f
...
...
@@ -118,7 +118,7 @@ int st_select_lex_unit::prepare(THD *thd, select_result *result,
prepared
=
1
;
res
=
0
;
found_rows_for_union
=
0
;
TMP_TABLE_PARAM
tmp_table_param
;
TMP_TABLE_PARAM
*
tmp_table_param
=
(
TMP_TABLE_PARAM
*
)
sql_calloc
(
sizeof
(
TMP_TABLE_PARAM
))
;
this
->
result
=
result
;
t_and_f
=
tables_and_fields_initied
;
SELECT_LEX_NODE
*
lex_select_save
=
thd
->
lex
.
current_select
;
...
...
@@ -162,9 +162,8 @@ int st_select_lex_unit::prepare(THD *thd, select_result *result,
t_and_f
=
1
;
}
bzero
((
char
*
)
&
tmp_table_param
,
sizeof
(
tmp_table_param
));
tmp_table_param
.
field_count
=
item_list
.
elements
;
if
(
!
(
table
=
create_tmp_table
(
thd
,
&
tmp_table_param
,
item_list
,
tmp_table_param
->
field_count
=
item_list
.
elements
;
if
(
!
(
table
=
create_tmp_table
(
thd
,
tmp_table_param
,
item_list
,
(
ORDER
*
)
0
,
!
union_option
,
1
,
(
select_cursor
->
options
|
thd
->
options
|
TMP_TABLE_ALL_COLUMNS
),
...
...
@@ -181,7 +180,7 @@ int st_select_lex_unit::prepare(THD *thd, select_result *result,
goto
err
;
union_result
->
not_describe
=
1
;
union_result
->
tmp_table_param
=
&
tmp_table_param
;
union_result
->
tmp_table_param
=
tmp_table_param
;
/*
the following piece of code is placed here solely for the purpose of
...
...
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