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
d285eadf
Commit
d285eadf
authored
Jun 01, 2023
by
Yuchen Pei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-22534 Factor out common parts between the two transformations
parent
82b05c0b
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
274 additions
and
263 deletions
+274
-263
sql/item_subselect.cc
sql/item_subselect.cc
+264
-262
sql/item_subselect.h
sql/item_subselect.h
+10
-1
No files found.
sql/item_subselect.cc
View file @
d285eadf
This diff is collapsed.
Click to expand it.
sql/item_subselect.h
View file @
d285eadf
...
...
@@ -365,6 +365,13 @@ class Item_maxmin_subselect :public Item_singlerow_subselect
void
no_rows_in_result
()
override
;
};
typedef
struct
st_eq_field_outer
{
Item
**
eq_ref
;
Item_ident
*
local_field
;
Item
*
outer_exp
;
}
EQ_FIELD_OUTER
;
/* exists subselect */
class
Item_exists_subselect
:
public
Item_subselect
...
...
@@ -375,7 +382,9 @@ class Item_exists_subselect :public Item_subselect
void
init_length_and_dec
();
bool
select_prepare_to_be_in
();
bool
exists2in_prepare
(
THD
*
thd
,
Dynamic_array
<
EQ_FIELD_OUTER
>
&
eqs
,
bool
&
will_be_correlated
);
bool
exists2in_create_or_update_in
(
THD
*
thd
,
const
Dynamic_array
<
EQ_FIELD_OUTER
>
&
eqs
,
Item
**
left_exp_ref
);
bool
exists2in_and_is_not_nulls
(
uint
offset
,
Item
*
left_exp
,
Item
**
left_exp_ref
);
public:
/*
Used by subquery optimizations to keep track about in which clause this
...
...
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