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

sql: format roundtrip: syntax error at or near "storing" #28846

Closed
maddyblue opened this issue Aug 20, 2018 · 0 comments
Closed

sql: format roundtrip: syntax error at or near "storing" #28846

maddyblue opened this issue Aug 20, 2018 · 0 comments
Assignees
Labels
A-sql-syntax Issues strictly related to the SQL grammar, with no semantic aspect C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.

Comments

@maddyblue
Copy link
Contributor

cannot parse output of Format: sql="CREATE INDEX IF NOT EXISTS CURRENT_ROLE ON VARCHAR USING GIN ( SNAPSHOT ASC ) STORING ( SUBSTRING , ident , EXPERIMENTAL_AUDIT ) INTERLEAVE IN PARENT ident . FULL . NOTNULL ( SUBSTRING ) RESTRICT", formattedSQL="CREATE INVERTED INDEX IF NOT EXISTS "current_role" ON "varchar" (snapshot ASC) STORING ("substring", ident, experimental_audit) INTERLEAVE IN PARENT ident.full.notnull ("substring") RESTRICT": syntax error at or near "storing"

Found with RSG.

@knz knz added C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. A-sql-syntax Issues strictly related to the SQL grammar, with no semantic aspect labels Sep 1, 2018
craig bot pushed a commit that referenced this issue Sep 2, 2018
29464: sql: fix the syntax roundtrip for CREATE INDEX r=knz a=knz

Fixes #28846

Co-authored-by: Raphael 'kena' Poss <[email protected]>
@craig craig bot closed this as completed in #29464 Sep 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-sql-syntax Issues strictly related to the SQL grammar, with no semantic aspect C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
Projects
None yet
Development

No branches or pull requests

2 participants