Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql/parser: fix the action for empty rules
A yacc-generated parser is a giant switch in a loop and the data structure is a stack implemented as indexes into an array. Each occurrence of `$$.val` is really `thestack[curpos].val`. Unless one nils things out in the rule action the previous value remains. (That's true of all yacc generators that don't provide destructors for values. GNU Bison and Lemon provide destructors, for example, goyacc and old Bison don't) Release note (bug fix): the `WITH` operand of import/export/backup/restore was sometimes processed improperly. This has been corrected. Release note (bug fix): common table expressions with `WITH` in larger queries were sometimes processed improperly. This has been corrected.
- Loading branch information