Skip to content

Commit

Permalink
Added defines for mysqld_error_find_printf_error_used
Browse files Browse the repository at this point in the history
This is to make it easier to use the
create_mysqld_error_find_printf_error tool to find wrong print
  • Loading branch information
montywi committed Jan 30, 2018
1 parent 29fd049 commit bbe0055
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sql/sql_class.h
Expand Up @@ -4163,6 +4163,11 @@ class THD :public Statement,
{
parse_error(ER_SYNTAX_ERROR);
}
#ifdef mysqld_error_find_printf_error_used
void parse_error(const char *t)
{
}
#endif
private:
/*
Only the implementation of the SIGNAL and RESIGNAL statements
Expand Down
1 change: 1 addition & 0 deletions sql/unireg.h
Expand Up @@ -56,6 +56,7 @@
#endif
#define ER_THD_OR_DEFAULT(thd,X) ((thd) ? ER_THD(thd, (X)) : ER_DEFAULT(X))


#define ME_INFO (ME_HOLDTANG | ME_NOREFRESH)
#define ME_ERROR (ME_BELL | ME_NOREFRESH)
#define MYF_RW MYF(MY_WME+MY_NABP) /* Vid my_read & my_write */
Expand Down

0 comments on commit bbe0055

Please sign in to comment.