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
a523444e
Commit
a523444e
authored
May 28, 2018
by
Eugene Kosov
Committed by
Sergey Vojtovich
Mar 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove dead code
parent
1c60f408
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
20 deletions
+2
-20
sql/sql_lex.cc
sql/sql_lex.cc
+0
-1
sql/sql_lex.h
sql/sql_lex.h
+1
-15
sql/sql_parse.cc
sql/sql_parse.cc
+1
-3
sql/sql_view.cc
sql/sql_view.cc
+0
-1
No files found.
sql/sql_lex.cc
View file @
a523444e
...
...
@@ -698,7 +698,6 @@ void LEX::start(THD *thd_arg)
describe
=
0
;
analyze_stmt
=
0
;
explain_json
=
false
;
subqueries
=
FALSE
;
context_analysis_only
=
0
;
derived_tables
=
0
;
safe_to_cache_query
=
1
;
...
...
sql/sql_lex.h
View file @
a523444e
...
...
@@ -3034,7 +3034,7 @@ struct LEX: public Query_tables_list
enum
enum_yes_no_unknown
tx_chain
,
tx_release
;
bool
safe_to_cache_query
;
bool
subqueries
,
ignore
;
bool
ignore
;
st_parsing_options
parsing_options
;
Alter_info
alter_info
;
/*
...
...
@@ -3053,7 +3053,6 @@ struct LEX: public Query_tables_list
sp_name
*
spname
;
bool
sp_lex_in_use
;
// Keep track on lex usage in SPs for error handling
bool
all_privileges
;
bool
proxy_priv
;
sp_pcontext
*
spcont
;
...
...
@@ -4140,18 +4139,6 @@ class Yacc_state
*/
};
/**
Input parameters to the parser.
*/
struct
Parser_input
{
bool
m_compute_digest
;
Parser_input
()
:
m_compute_digest
(
false
)
{}
};
/**
Internal state of the parser.
The complete state consist of:
...
...
@@ -4179,7 +4166,6 @@ class Parser_state
~
Parser_state
()
{}
Parser_input
m_input
;
Lex_input_stream
m_lip
;
Yacc_state
m_yacc
;
...
...
sql/sql_parse.cc
View file @
a523444e
...
...
@@ -7733,7 +7733,6 @@ mysql_new_select(LEX *lex, bool move_down, SELECT_LEX *select_lex)
if
(
move_down
)
{
SELECT_LEX_UNIT
*
unit
;
lex
->
subqueries
=
TRUE
;
/* first select_lex of subselect or derived table */
if
(
!
(
unit
=
new
(
thd
->
mem_root
)
SELECT_LEX_UNIT
()))
DBUG_RETURN
(
1
);
...
...
@@ -10079,8 +10078,7 @@ bool parse_sql(THD *thd, Parser_state *parser_state,
/* Start Digest */
parser_state
->
m_digest_psi
=
MYSQL_DIGEST_START
(
thd
->
m_statement_psi
);
if
(
parser_state
->
m_input
.
m_compute_digest
||
(
parser_state
->
m_digest_psi
!=
NULL
))
if
(
parser_state
->
m_digest_psi
!=
NULL
)
{
/*
If either:
...
...
sql/sql_view.cc
View file @
a523444e
...
...
@@ -1712,7 +1712,6 @@ bool mysql_make_view(THD *thd, TABLE_SHARE *share, TABLE_LIST *table,
view_select
->
linkage
=
DERIVED_TABLE_TYPE
;
table
->
updatable
=
0
;
table
->
effective_with_check
=
VIEW_CHECK_NONE
;
old_lex
->
subqueries
=
TRUE
;
table
->
derived
=
&
lex
->
unit
;
}
...
...
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