Skip to content

Commit

Permalink
Allowing the caching plugin to be specified in string quotes, for "cr…
Browse files Browse the repository at this point in the history
…eate user ... identified with" syntax
  • Loading branch information
fulghum committed May 24, 2024
1 parent e778edc commit 36e45c1
Show file tree
Hide file tree
Showing 3 changed files with 6,817 additions and 6,733 deletions.
3 changes: 3 additions & 0 deletions go/vt/sqlparser/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2890,6 +2890,9 @@ var (
}, {
input: "CREATE USER UserName@localhost ATTRIBUTE '{\"attr\": \"attr_text\"}'",
output: "create user `UserName`@`localhost` attribute '{\"attr\": \"attr_text\"}'",
}, {
input: "CREATE USER 'UserName'@'%' IDENTIFIED WITH 'caching_sha2_password' AS 'xyz0123'",
output: "create user `UserName`@`%` identified with caching_sha2_password as 'xyz0123'",
}, {
input: "ALTER USER IF EXISTS foo@bar IDENTIFIED BY 'password1';",
output: "alter user if exists `foo`@`bar` identified by 'password1'",
Expand Down
Loading

0 comments on commit 36e45c1

Please sign in to comment.