Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release-2.1: sql/parser: fix the action for empty rules #30198

Merged
merged 1 commit into from
Sep 13, 2018

Conversation

knz
Copy link
Contributor

@knz knz commented Sep 13, 2018

Backport 1/1 commits from #30197.

/cc @cockroachdb/release


Fixes #30141.

@knz knz requested review from maddyblue, jordanlewis and a team September 13, 2018 16:45
@cockroach-teamcity
Copy link
Member

This change is Reviewable

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.
@knz knz force-pushed the backport2.1-30197 branch from cd85296 to 08ba22a Compare September 13, 2018 20:18
@knz knz merged commit c1c93ca into cockroachdb:release-2.1 Sep 13, 2018
@knz knz deleted the backport2.1-30197 branch September 13, 2018 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants