bison_yyn-yyrule_rename.diff 893 B

12345678910111213141516171819
  1. --- connectivity/source/parse/sqlbison.y.orig 2021-09-18 13:35:17.897000000 +1000
  2. +++ connectivity/source/parse/sqlbison.y 2021-09-18 13:32:58.864000000 +1000
  3. @@ -74,9 +74,15 @@
  4. // yyi is the internal number of the rule that is currently being reduced
  5. // This can be mapped to external rule number via the yyrmap.
  6. +#if defined YYBISON && YYBISON >= 30800
  7. +#define SQL_NEW_RULE newNode("", SQLNodeType::Rule, yyr1[yyrule])
  8. +#define SQL_NEW_LISTRULE newNode("", SQLNodeType::ListRule, yyr1[yyrule])
  9. +#define SQL_NEW_COMMALISTRULE newNode("", SQLNodeType::CommaListRule, yyr1[yyrule])
  10. +#else
  11. #define SQL_NEW_RULE newNode("", SQLNodeType::Rule, yyr1[yyn])
  12. #define SQL_NEW_LISTRULE newNode("", SQLNodeType::ListRule, yyr1[yyn])
  13. #define SQL_NEW_COMMALISTRULE newNode("", SQLNodeType::CommaListRule, yyr1[yyn])
  14. +#endif
  15. extern connectivity::OSQLParser* xxx_pGLOBAL_SQLPARSER;