mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 10:31:54 +01:00
Bison parser cleanups: define yyerror() instead of MYSQLerror()/ORAerror()
To reduce the difference between sql_yacc.yy and sql_yacc_ora.yy, using yyerror() in both files, instead of MYSQLerror() and ORAerror(). The pre-processor replaces yyerror() to MYSQLerror() and ORAerror() anyway.
This commit is contained in:
parent
927ea88084
commit
b40cab657b
2 changed files with 2 additions and 2 deletions
|
@ -136,7 +136,7 @@ int yylex(void *yylval, void *yythd);
|
||||||
to abort from the parser.
|
to abort from the parser.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void MYSQLerror(THD *thd, const char *s)
|
static void yyerror(THD *thd, const char *s)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
Restore the original LEX if it was replaced when parsing
|
Restore the original LEX if it was replaced when parsing
|
||||||
|
|
|
@ -136,7 +136,7 @@ int yylex(void *yylval, void *yythd);
|
||||||
to abort from the parser.
|
to abort from the parser.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void ORAerror(THD *thd, const char *s)
|
static void yyerror(THD *thd, const char *s)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
Restore the original LEX if it was replaced when parsing
|
Restore the original LEX if it was replaced when parsing
|
||||||
|
|
Loading…
Add table
Reference in a new issue