Skip to content

Fix mysqldef test#6

Merged
ngaut merged 2 commits into
pingcap:masterfrom
siddontang:fix-mysqldef-test
Sep 6, 2015
Merged

Fix mysqldef test#6
ngaut merged 2 commits into
pingcap:masterfrom
siddontang:fix-mysqldef-test

Conversation

@siddontang
Copy link
Copy Markdown
Member

@ngaut
Copy link
Copy Markdown
Member

ngaut commented Sep 6, 2015

LGTM

1 similar comment
@coocood
Copy link
Copy Markdown
Member

coocood commented Sep 6, 2015

LGTM

ngaut added a commit that referenced this pull request Sep 6, 2015
@ngaut ngaut merged commit d16503f into pingcap:master Sep 6, 2015
IggieWang added a commit to IggieWang/tidb that referenced this pull request Aug 13, 2019
wph95 referenced this pull request in wph95/tidb Oct 6, 2019
Add `create table as select` stream support
ichn-hu pushed a commit to ichn-hu/tidb that referenced this pull request Apr 28, 2020
support execute summary info for tree struct based dag request
jackysp pushed a commit to jackysp/tidb that referenced this pull request May 19, 2020
abbccdda pushed a commit to abbccdda/tidb that referenced this pull request Jan 16, 2021
store: adaptive follower read with matched zone label
YuJuncen pushed a commit to YuJuncen/tidb that referenced this pull request Apr 23, 2021
* config section for logger & rename config file

* adjust to new configuration

* correct using config item

* adjust comment
YuJuncen pushed a commit to YuJuncen/tidb that referenced this pull request Apr 23, 2021
Signed-off-by: Neil Shen <overvenus@gmail.com>
lichunzhu added a commit to lichunzhu/tidb that referenced this pull request Jan 5, 2022
WIP: Hack5.3(add index ok and admin check table ok)
rebelice pushed a commit to rebelice/tidb that referenced this pull request Jan 7, 2022
dumpling: Implement parquet support
TszKitLo40 pushed a commit to TszKitLo40/tidb that referenced this pull request Jan 9, 2022
Defined2014 pushed a commit to Defined2014/tidb that referenced this pull request Mar 15, 2022
support multi-schema change for add columns
sleepymole pushed a commit to sleepymole/tidb that referenced this pull request Aug 22, 2022
fix: Fix missing required AZ for CreateVolumeFromSnapshot
zhongzc pushed a commit to zhongzc/tidb that referenced this pull request Feb 6, 2023
refine stmt summary v2 retriever
qw4990 added a commit to qw4990/tidb that referenced this pull request Jun 21, 2023
# This is the 1st commit message:

fixup

# This is the commit message #2:

fixup

# This is the commit message pingcap#3:

fixup

# This is the commit message pingcap#4:

fixup

# This is the commit message pingcap#5:

fixup

# This is the commit message pingcap#6:

fixup
guoshouyan pushed a commit to guoshouyan/tidb that referenced this pull request Mar 5, 2024
…gcap#46706) (pingcap#47003) (pingcap#6)

* client-go: attach request source with retry info for coprocessor (pingcap#46509) (pingcap#46706)

close pingcap#46514

* restore bazelversiong

Signed-off-by: you06 <you1474600@gmail.com>

* remove unused field

Signed-off-by: you06 <you1474600@gmail.com>

* update client-go

Signed-off-by: you06 <you1474600@gmail.com>

---------

Signed-off-by: you06 <you1474600@gmail.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>

Signed-off-by: you06 <you1474600@gmail.com>
Co-authored-by: you06 <you1474600@gmail.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
wshwsh12 pushed a commit to wshwsh12/tidb that referenced this pull request Apr 16, 2025
solotzg pushed a commit to solotzg/tidb that referenced this pull request Mar 1, 2026
*: materialized view refresh optimizer updates
takaidohigasi added a commit to takaidohigasi/tidb that referenced this pull request May 17, 2026
Fixes for D3Hunter's review on pingcap#68028:

[Blocker] Dual-password clauses are parsed but ignored by execution
  - Add executor stubs that reject RETAIN CURRENT PASSWORD / DISCARD
    OLD PASSWORD with ER_NOT_SUPPORTED_YET in executeAlterUser and
    executeSetPwd. Full execution / privilege / storage logic lives in
    the follow-up PR pingcap#68393.
  - Expose exeerrors.ErrNotSupportedYet for callers (was previously
    only available via dbterror.ClassExecutor.NewStd inline).
  - New TestDualPasswordParserOnlyStub in passwordtest to pin the
    stub's behavior.

[Major pingcap#2] CREATE USER accepted dual-password clauses outside MySQL grammar
  - Drop the CreateUserSpec/CreateUserSpecList non-terminals and route
    CREATE USER back through the original UserSpec/UserSpecList chain.
    CREATE USER + RETAIN/DISCARD is now a parser-level syntax error,
    matching MySQL.

[Major pingcap#3] ALTER USER over-accepted invalid RETAIN combinations
  - Introduce AuthOptionWithPassword (the BY-form subset of AuthOption)
    and restructure AlterUserSpec to bind RETAIN only to that subset.
    Reject at parse time:
      ALTER USER u IDENTIFIED WITH plugin AS '<hash>' RETAIN ...
      ALTER USER u IDENTIFIED WITH plugin RETAIN ...
      ALTER USER u RETAIN CURRENT PASSWORD (no auth)
      ALTER USER u IDENTIFIED BY '...' DISCARD OLD PASSWORD
  - DISCARD becomes its own AlterUserSpec variant (no auth-option
    coexists with it).

[Major pingcap#4] Grammar label/documentation contradiction
  - Drop the misleading 'unsupported dual password option' label on the
    deleted CreateUserSpec; rewrite UserSpec/AlterUserSpec labels to
    state the contract accurately.

[Major pingcap#5] Generic *PasswordOrLockOption type was overloaded
  - Introduce dedicated ast.DualPasswordOption and
    ast.DualPasswordOptionType (with DualPasswordRetainCurrent /
    DualPasswordDiscardOld). UserSpec.DualPasswordOption now uses the
    dedicated type. Remove the RetainCurrentPassword and
    DiscardOldPassword iota entries from PasswordOrLockOption.

[Minor pingcap#6] ALTER USER USER() branch
  - USER() still does not route through AlterUserSpecList; dual-password
    on USER() is now a parse-time syntax error (covered by negative test).

[Minor pingcap#7] Parser tests had no negative coverage
  - Add explicit ok=false rows for CREATE USER + RETAIN, the AS-hash +
    RETAIN form, bare RETAIN with no auth, plain BY + DISCARD,
    bare-plugin + RETAIN, and ALTER USER USER() + RETAIN.

[Minor pingcap#8] CREATE/ALTER user-spec grammar duplication
  - Now naturally eliminated because CREATE USER reuses UserSpec.

Behavior PR (pingcap#68393) needs to:
  - Remove the executor stubs added here.
  - Adopt the new ast.DualPasswordOption / DualPasswordOptionType
    symbols (the iota entries it currently consumes are gone).

Ref pingcap#60587
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