Skip to content

Fix parsing of online-ddl command line options#6900

Merged
deepthi merged 1 commit intovitessio:masterfrom
planetscale:parse-online-ddl-options
Oct 19, 2020
Merged

Fix parsing of online-ddl command line options#6900
deepthi merged 1 commit intovitessio:masterfrom
planetscale:parse-online-ddl-options

Conversation

@shlomi-noach
Copy link
Copy Markdown
Contributor

Co-submission of #6899, going into master.

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.

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
@deepthi deepthi modified the milestone: v8.0 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 ef2fd22 into vitessio:master Oct 19, 2020
@deepthi deepthi deleted the parse-online-ddl-options branch October 19, 2020 17:04
@askdba askdba added this to the v8.0 milestone Oct 27, 2020
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