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
906f5675
Commit
906f5675
authored
Apr 30, 2005
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
postreview changes
parent
498a458f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
sql/item.cc
sql/item.cc
+2
-2
sql/item.h
sql/item.h
+1
-1
sql/sql_base.cc
sql/sql_base.cc
+5
-2
No files found.
sql/item.cc
View file @
906f5675
...
...
@@ -2367,8 +2367,8 @@ static void mark_as_dependent(THD *thd, SELECT_LEX *last, SELECT_LEX *current,
SYNOPSIS
mark_select_range_as_dependent()
thd - thread handler
current_sel - current select (select where resolved_item was placed)
last_select - select where resolved_item was resolved
current_sel - current select (select where resolved_item was placed)
found_field - field which was found during resolving
found_item - Item which was found during resolving (if resolved
identifier belongs to VIEW)
...
...
@@ -2383,8 +2383,8 @@ static void mark_as_dependent(THD *thd, SELECT_LEX *last, SELECT_LEX *current,
*/
void
mark_select_range_as_dependent
(
THD
*
thd
,
SELECT_LEX
*
current_sel
,
SELECT_LEX
*
last_select
,
SELECT_LEX
*
current_sel
,
Field
*
found_field
,
Item
*
found_item
,
Item_ident
*
resolved_item
)
{
...
...
sql/item.h
View file @
906f5675
...
...
@@ -1797,8 +1797,8 @@ class Item_type_holder: public Item
class
st_select_lex
;
void
mark_select_range_as_dependent
(
THD
*
thd
,
st_select_lex
*
current_sel
,
st_select_lex
*
last_select
,
st_select_lex
*
current_sel
,
Field
*
found_field
,
Item
*
found_item
,
Item_ident
*
resolved_item
);
...
...
sql/sql_base.cc
View file @
906f5675
...
...
@@ -2692,9 +2692,12 @@ find_field_in_tables(THD *thd, Item_ident *item, TABLE_LIST *tables,
{
SELECT_LEX
*
current_sel
=
thd
->
lex
->
current_select
;
SELECT_LEX
*
last_select
=
item
->
cached_table
->
select_lex
;
/* check that field was resolved in outer query */
/*
If the field was an outer referencee, mark all selects using this
sub query as dependent of the outer query
*/
if
(
current_sel
!=
last_select
)
mark_select_range_as_dependent
(
thd
,
current_sel
,
last_select
,
mark_select_range_as_dependent
(
thd
,
last_select
,
current_sel
,
found
,
*
ref
,
item
);
}
return
found
;
...
...
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