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

plan: resolve indices for apply schema #6540

Merged
merged 3 commits into from
May 11, 2018

Conversation

coocood
Copy link
Member

@coocood coocood commented May 11, 2018

If the apply schema is not resolved, the handle will be lost, then update will update the row with 0 handle.

If the apply schema is not resolved, the handle will be lost, then update will update the row with 0 handle.
@coocood coocood added the type/bugfix This PR fixes a bug. label May 11, 2018
@coocood
Copy link
Member Author

coocood commented May 11, 2018

@zz-jason @winoros PTAL

Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

@coocood
Copy link
Member Author

coocood commented May 11, 2018

/run-all-tests

Copy link
Member

@winoros winoros left a comment

Choose a reason for hiding this comment

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

LGTM

tk.MustExec("insert detail values ('abc', '123', 2)")
tk.MustExec(`
UPDATE msg SET msg.status = (SELECT detail.status FROM detail WHERE detail.start = '123' AND msg.id = detail.id)
WHERE EXISTS (SELECT 1 FROM detail d WHERE d.start = '123' AND msg.id = d.id)`)
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we remove line 1607? I think it makes the test easier

@coocood
Copy link
Member Author

coocood commented May 11, 2018

/run-all-tests

Copy link
Contributor

@winkyao winkyao left a comment

Choose a reason for hiding this comment

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

LGTM

@winkyao
Copy link
Contributor

winkyao commented May 11, 2018

/run-unit-test

@coocood coocood merged commit 2fe3581 into pingcap:master May 11, 2018
@coocood coocood deleted the fix-apply-schema branch May 11, 2018 14:07
coocood added a commit to coocood/tidb that referenced this pull request May 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants