Skip to content

executor: Support NO_AUTO_CREATE_USER sql mode#8160

Merged
tiancaiamao merged 10 commits into
pingcap:masterfrom
morgo:noautocreateuser
Nov 12, 2018
Merged

executor: Support NO_AUTO_CREATE_USER sql mode#8160
tiancaiamao merged 10 commits into
pingcap:masterfrom
morgo:noautocreateuser

Conversation

@morgo
Copy link
Copy Markdown
Contributor

@morgo morgo commented Nov 2, 2018

What problem does this PR solve?

Provides NO_AUTO_CREATE_USER sql mode. Fixes #8128

What is changed and how it works?

It depends on parser changes:
pingcap/parser#10

Check List

Tests

  • Unit test
  • Manual test (add detailed scripts or steps below)

Code changes

  • Has exported function/method change
  • Has interface methods change
  • Has persistent data change

Side effects

  • Increased code complexity
  • Breaking backward compatibility (* when enabled by default: a followup patch)

Related changes

  • Need to be included in the release note

@morgo morgo changed the title Support NO_AUTO_CREATE_USER sql mode executor: Support NO_AUTO_CREATE_USER sql mode Nov 2, 2018
@morgo
Copy link
Copy Markdown
Contributor Author

morgo commented Nov 2, 2018

The build error is related to the parser changes not merged. It should otherwise work.

@morgo morgo requested a review from tiancaiamao November 2, 2018 20:03
@morgo
Copy link
Copy Markdown
Contributor Author

morgo commented Nov 2, 2018

PTAL @tiancaiamao

Comment thread executor/grant.go Outdated
)

const (
codePasswordNoMatch = 1133
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.

It better to put line42~line48 to executor/errors.go

Comment thread executor/grant_test.go
@morgo
Copy link
Copy Markdown
Contributor Author

morgo commented Nov 5, 2018

Thx for the feedback - I've made the changes, but the CI will still show as 'X' because of the parser dependency.

@XuHuaiyu
Copy link
Copy Markdown
Contributor

XuHuaiyu commented Nov 6, 2018

LGTM
PTAL @tiancaiamao

@XuHuaiyu XuHuaiyu added status/LGT1 Indicates that a PR has LGTM 1. component/privilege type/enhancement The issue or PR belongs to an enhancement. labels Nov 6, 2018
@tiancaiamao
Copy link
Copy Markdown
Contributor

Try GO111MODULE=on go get -u github.com/pingcap/parser and make dev again
@morgo

@tiancaiamao
Copy link
Copy Markdown
Contributor

Well, GO111MODULE=on go get -u github.com/pingcap/parser can't work temporarily.
Please wait for pingcap/parser#23

@morgo
Copy link
Copy Markdown
Contributor Author

morgo commented Nov 10, 2018

/run-all-tests

@shenli
Copy link
Copy Markdown
Member

shenli commented Nov 10, 2018

/run-integration-ddl-test

@tiancaiamao
Copy link
Copy Markdown
Contributor

LGTM

@tiancaiamao tiancaiamao merged commit ce6a715 into pingcap:master Nov 12, 2018
@morgo morgo deleted the noautocreateuser branch November 12, 2018 07:16
@sre-bot sre-bot added the contribution This PR is from a community contributor. label Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/privilege contribution This PR is from a community contributor. status/LGT1 Indicates that a PR has LGTM 1. type/enhancement The issue or PR belongs to an enhancement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support NO_AUTO_CREATE_USER sql_mode

5 participants