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
8d09a0d7
Commit
8d09a0d7
authored
Sep 10, 2024
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make parsed output: SELECT_LEX::parsed_optimizer_hints const.
This required changing some other functions to const too.
parent
c8ce9fbb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
sql/opt_hints.cc
sql/opt_hints.cc
+6
-6
sql/opt_hints_parser.h
sql/opt_hints_parser.h
+1
-1
sql/sql_lex.h
sql/sql_lex.h
+1
-1
No files found.
sql/opt_hints.cc
View file @
8d09a0d7
...
...
@@ -685,7 +685,7 @@ bool Optimizer_hint_parser::Qb_name_hint::resolve(Parse_context *pc) const
}
bool
Optimizer_hint_parser
::
Hint_list
::
resolve
(
Parse_context
*
pc
)
bool
Optimizer_hint_parser
::
Hint_list
::
resolve
(
Parse_context
*
pc
)
const
{
if
(
pc
->
thd
->
lex
->
create_view
)
{
...
...
@@ -699,20 +699,20 @@ bool Optimizer_hint_parser::Hint_list::resolve(Parse_context *pc)
if
(
!
get_qb_hints
(
pc
))
return
true
;
List_iterator_fast
<
Optimizer_hint_parser
::
Hint
>
li
(
*
this
);
while
(
Optimizer_hint_parser
::
Hint
*
hint
=
li
++
)
for
(
Hint_list
::
const_iterator
li
=
this
->
cbegin
();
li
!=
this
->
cend
();
++
li
)
{
if
(
const
Table_level_hint
&
table_hint
=
*
hint
)
const
Optimizer_hint_parser
::
Hint
&
hint
=
*
li
;
if
(
const
Table_level_hint
&
table_hint
=
hint
)
{
if
(
table_hint
.
resolve
(
pc
))
return
true
;
}
else
if
(
const
Index_level_hint
&
index_hint
=
*
hint
)
else
if
(
const
Index_level_hint
&
index_hint
=
hint
)
{
if
(
index_hint
.
resolve
(
pc
))
return
true
;
}
else
if
(
const
Qb_name_hint
&
qb_hint
=
*
hint
)
else
if
(
const
Qb_name_hint
&
qb_hint
=
hint
)
{
if
(
qb_hint
.
resolve
(
pc
))
return
true
;
...
...
sql/opt_hints_parser.h
View file @
8d09a0d7
...
...
@@ -585,7 +585,7 @@ class Optimizer_hint_parser: public Optimizer_hint_tokenizer,
public:
using
LIST
::
LIST
;
bool
resolve
(
Parse_context
*
pc
);
bool
resolve
(
Parse_context
*
pc
)
const
;
};
public:
...
...
sql/sql_lex.h
View file @
8d09a0d7
...
...
@@ -1264,7 +1264,7 @@ class st_select_lex: public st_select_lex_node
/* it is for correct printing SELECT options */
thr_lock_type
lock_type
;
Optimizer_hint_parser_output
*
parsed_optimizer_hints
;
const
Optimizer_hint_parser_output
*
parsed_optimizer_hints
;
/** System Versioning */
int
vers_setup_conds
(
THD
*
thd
,
TABLE_LIST
*
tables
);
...
...
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