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
0c6cb114
Commit
0c6cb114
authored
Jul 01, 2002
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
subselect clean up
fix after automerge
parent
1a885421
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
sql/item_strfunc.cc
sql/item_strfunc.cc
+1
-1
sql/sql_lex.h
sql/sql_lex.h
+3
-1
sql/sql_select.cc
sql/sql_select.cc
+16
-0
No files found.
sql/item_strfunc.cc
View file @
0c6cb114
...
...
@@ -1922,7 +1922,7 @@ bool Item_func_conv_charset::fix_fields(THD *thd,struct st_table_list *tables)
if
(
thd
&&
check_stack_overrun
(
thd
,
buff
))
return
0
;
// Fatal error if flag is set!
if
(
args
[
0
]
->
fix_fields
(
thd
,
table
s
))
if
(
args
[
0
]
->
fix_fields
(
thd
,
tables
,
arg
s
))
return
1
;
maybe_null
=
args
[
0
]
->
maybe_null
;
binary
=
args
[
0
]
->
binary
;
...
...
sql/sql_lex.h
View file @
0c6cb114
...
...
@@ -240,6 +240,7 @@ typedef struct st_select_lex_unit SELECT_LEX_UNIT;
/*
SELECT_LEX - store information of parsed SELECT_LEX statment
*/
class
JOIN
;
class
st_select_lex
:
public
st_select_lex_node
{
public:
char
*
db
,
*
db1
,
*
table1
,
*
db2
,
*
table2
;
/* For outer join using .. */
...
...
@@ -251,12 +252,13 @@ public:
List
<
String
>
interval_list
,
use_index
,
*
use_index_ptr
,
ignore_index
,
*
ignore_index_ptr
;
List
<
Item_func_match
>
ftfunc_list
;
JOIN
*
join
;
/* after JOIN::prepare it is pointer to corresponding JOIN */
uint
in_sum_expr
;
bool
create_refs
,
braces
,
/* SELECT ... UNION (SELECT ... ) <- this braces */
depended
,
/* depended from outer select subselect */
/* TRUE when having fix field called in processing of this SELECT */
having_fix_field
;
having_fix_field
;
e
void
init_query
();
void
init_select
();
...
...
sql/sql_select.cc
View file @
0c6cb114
...
...
@@ -211,6 +211,7 @@ JOIN::prepare(TABLE_LIST *tables_init,
proc_param
=
proc_param_init
;
tables_list
=
tables_init
;
select_lex
=
select
;
select
->
join
=
this
;
union_part
=
(
unit
->
first_select
()
->
next_select
()
!=
0
);
/* Check that all tables, fields, conds and order are ok */
...
...
@@ -974,6 +975,21 @@ JOIN::cleanup(THD *thd)
delete
select
;
delete_dynamic
(
&
keyuse
);
delete
procedure
;
for
(
SELECT_LEX_UNIT
*
unit
=
select_lex
->
first_inner_unit
();
unit
!=
0
;
unit
=
unit
->
next_unit
())
for
(
SELECT_LEX
*
sl
=
unit
->
first_select
();
sl
!=
0
;
sl
=
sl
->
next_select
())
{
if
(
sl
->
join
)
{
int
err
=
sl
->
join
->
cleanup
(
thd
);
if
(
err
)
error
=
err
;
sl
->
join
=
0
;
}
}
return
error
;
}
...
...
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