Skip to content

Commit

Permalink
A cleanup for 2a33d24
Browse files Browse the repository at this point in the history
- Removing the unused "THD*" paramer from Lex_ident_sys_st::to_size_number()
- Removing redundant #include for "sql_tvc.h" and "vers_utils.h"
  • Loading branch information
abarkov authored and vaintroub committed May 21, 2018
1 parent b73083c commit 7d91d98
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion sql/sql_lex.cc
Expand Up @@ -7980,7 +7980,7 @@ bool Lex_ident_sys_st::convert(THD *thd,
}


bool Lex_ident_sys_st::to_size_number(THD *thd, ulonglong *to) const
bool Lex_ident_sys_st::to_size_number(ulonglong *to) const
{
ulonglong number;
uint text_shift_number= 0;
Expand Down
2 changes: 1 addition & 1 deletion sql/sql_lex.h
Expand Up @@ -143,7 +143,7 @@ struct Lex_ident_sys_st: public LEX_CSTRING
bool convert(THD *thd, const LEX_CSTRING *str, CHARSET_INFO *cs);
bool copy_or_convert(THD *thd, const Lex_ident_cli_st *str, CHARSET_INFO *cs);
bool is_null() const { return str == NULL; }
bool to_size_number(THD *thd, ulonglong *to) const;
bool to_size_number(ulonglong *to) const;
};


Expand Down
4 changes: 1 addition & 3 deletions sql/sql_yacc.yy
Expand Up @@ -67,8 +67,6 @@
#include "lex_token.h"
#include "sql_lex.h"
#include "sql_sequence.h"
#include "sql_tvc.h"
#include "vers_utils.h"
#include "my_base.h"

/* this is to get the bison compilation windows warnings out */
Expand Down Expand Up @@ -5142,7 +5140,7 @@ size_number:
real_ulonglong_num { $$= $1;}
| IDENT_sys
{
if ($1.to_size_number(thd, &$$))
if ($1.to_size_number(&$$))
MYSQL_YYABORT;
}
;
Expand Down
4 changes: 1 addition & 3 deletions sql/sql_yacc_ora.yy
Expand Up @@ -67,8 +67,6 @@
#include "lex_token.h"
#include "sql_lex.h"
#include "sql_sequence.h"
#include "sql_tvc.h"
#include "vers_utils.h"
#include "my_base.h"

/* this is to get the bison compilation windows warnings out */
Expand Down Expand Up @@ -5100,7 +5098,7 @@ size_number:
real_ulonglong_num { $$= $1;}
| IDENT_sys
{
if ($1.to_size_number(thd, &$$))
if ($1.to_size_number(&$$))
MYSQL_YYABORT;
}
;
Expand Down

0 comments on commit 7d91d98

Please sign in to comment.