Skip to content

allow IGNORE in update sql statements#4277

Merged
sougou merged 3 commits intovitessio:masterfrom
planetscale:ds-update-ignore-2
Oct 18, 2018
Merged

allow IGNORE in update sql statements#4277
sougou merged 3 commits intovitessio:masterfrom
planetscale:ds-update-ignore-2

Conversation

@deepthi
Copy link
Copy Markdown
Collaborator

@deepthi deepthi commented Oct 16, 2018

The Vitess SQL grammar does not currently allow IGNORE in UPDATE statements. This PR allows an optional IGNORE keyword in UPDATE statements. This will be passed to the backing database.

Signed-off-by: deepthi deepthi@planetscale.com

Signed-off-by: deepthi <deepthi@planetscale.com>
Signed-off-by: deepthi <deepthi@planetscale.com>
input: "update foo f join bar b on f.name = b.name set f.id = b.id where b.name = 'test'",
output: "update foo as f join bar as b on f.name = b.name set f.id = b.id where b.name = 'test'",
}, {
input: "update /* simple */ ignore a set b = 3",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

simple->ignore

Signed-off-by: deepthi <deepthi@planetscale.com>
@sougou sougou merged commit c32d29c into vitessio:master Oct 18, 2018
@deepthi deepthi deleted the ds-update-ignore-2 branch December 5, 2018 01:06
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