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
fa05e071
Commit
fa05e071
authored
Jul 01, 2002
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge abarkov@work.mysql.com:/home/bk/mysql-4.1
into gw.udmsearch.izhnet.ru:/usr/home/bar/mysql-4.1
parents
3601ed00
e414303e
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 @
fa05e071
...
...
@@ -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 @
fa05e071
...
...
@@ -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 @@ class st_select_lex: public st_select_lex_node {
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
;
void
init_query
();
void
init_select
();
...
...
sql/sql_select.cc
View file @
fa05e071
...
...
@@ -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