Skip to content

8.0 Bugfix: fix parsing of online-ddl command line options#6899

Merged
deepthi merged 1 commit intovitessio:release-8.0from
planetscale:parse-online-ddl-options-release80
Oct 19, 2020
Merged

8.0 Bugfix: fix parsing of online-ddl command line options#6899
deepthi merged 1 commit intovitessio:release-8.0from
planetscale:parse-online-ddl-options-release80

Conversation

@shlomi-noach
Copy link
Copy Markdown
Contributor

In the following statement:

ALTER WITH 'gh-ost' '--throttle-query="SELECT SLEEP(1)"' TABLE t DROP COLUMN c

the current behavior wrongly parses the command line options as '--throttle-query="SELECT and SLEEP(1)", because of the space, ignoring the quotes. This PR fixes that by using a more sophisticated parser.

This should ideally make it into 8.0.

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
@shlomi-noach shlomi-noach requested a review from sougou as a code owner October 19, 2020 11:42
@shlomi-noach shlomi-noach requested review from a team and deepthi and removed request for deepthi October 19, 2020 12:18
@deepthi deepthi added this to the v8.0 milestone Oct 19, 2020
Copy link
Copy Markdown
Collaborator

@deepthi deepthi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@deepthi deepthi merged commit 58a8801 into vitessio:release-8.0 Oct 19, 2020
@deepthi deepthi deleted the parse-online-ddl-options-release80 branch October 19, 2020 17:03
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.

2 participants