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

Add support for TRUNCATE as DDL statement #3335

Merged
merged 5 commits into from
Oct 25, 2017

Conversation

rafael
Copy link
Member

@rafael rafael commented Oct 22, 2017

Description

The following PR adds support to execute TRUNCATE statements as DDL statement.

I'm not 100% sure these are all the changes required, but seems to work 😄

Tests

  • Tested in local cluster and it's working as expected.
  • Also, modified parse_test.go but failing locally. Want to check what happens in CI.

@sougou
Copy link
Contributor

sougou commented Oct 24, 2017

One final nit: I think it will be a good idea to add TruncateStr to this list: https://github.com/youtube/vitess/blob/master/go/vt/schemamanager/tablet_executor.go#L156.

I found this by reviewing all uses of DDL.Action.

@sougou
Copy link
Contributor

sougou commented Oct 25, 2017

LGTM
Can you resolve the merge conflicts?

Approved with PullApprove

@sougou sougou merged commit 9c4cabd into vitessio:master Oct 25, 2017
@rafael rafael deleted the add-support-for-truncate branch November 14, 2017 00:06
frouioui pushed a commit to planetscale/vitess that referenced this pull request Mar 26, 2024
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