diff options
author | 2014-05-13 20:52:18 -0400 | |
---|---|---|
committer | 2014-05-13 20:52:18 -0400 | |
commit | aa902e1b4ae3e98d6c8d87a6d8af160e4fa6fe2e (patch) | |
tree | 24f72a8db0a01287b0eb694155f7889497d4b067 /20010_all_mysql51-bison3.patch | |
parent | Fix index (diff) | |
download | mysql-extras-aa902e1b4ae3e98d6c8d87a6d8af160e4fa6fe2e.tar.gz mysql-extras-aa902e1b4ae3e98d6c8d87a6d8af160e4fa6fe2e.tar.bz2 mysql-extras-aa902e1b4ae3e98d6c8d87a6d8af160e4fa6fe2e.zip |
fix bison3 on mysql 5.1.xx
Diffstat (limited to '20010_all_mysql51-bison3.patch')
-rw-r--r-- | 20010_all_mysql51-bison3.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/20010_all_mysql51-bison3.patch b/20010_all_mysql51-bison3.patch new file mode 100644 index 0000000..78d0faf --- /dev/null +++ b/20010_all_mysql51-bison3.patch @@ -0,0 +1,43 @@ +X-Upstream-Patch-URL: https://bazaar.launchpad.net/~percona-core/percona-server/5.1/revision/611 +=== modified file 'Percona-Server/sql/sql_yacc.yy' +--- Percona-Server/sql/sql_yacc.yy 2013-06-03 03:53:55 +0000 ++++ Percona-Server/sql/sql_yacc.yy 2014-04-23 09:26:47 +0000 +@@ -27,8 +27,6 @@ + ** The type will be void*, so it must be cast to (THD*) when used. + ** Use the YYTHD macro for this. + */ +-#define YYPARSE_PARAM yythd +-#define YYLEX_PARAM yythd + #define YYTHD ((THD *)yythd) + #define YYLIP (& YYTHD->m_parser_state->m_lip) + +@@ -64,7 +62,7 @@ + ulong val= *(F); \ + if (my_yyoverflow((B), (D), &val)) \ + { \ +- yyerror((char*) (A)); \ ++ yyerror(yythd, (char*) (A)); \ + return 2; \ + } \ + else \ +@@ -159,7 +157,7 @@ + to abort from the parser. + */ + +-void MYSQLerror(const char *s) ++void MYSQLerror(void *yythd, const char *s) + { + THD *thd= current_thd; + +@@ -675,7 +673,9 @@ + bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize); + %} + +-%pure_parser /* We have threads */ ++%pure-parser /* We have threads */ ++%parse-param { void *yythd } ++%lex-param { void *yythd } + /* + Currently there are 169 shift/reduce conflicts. + We should not introduce new conflicts any more. + |