014-code opened a new pull request, #38835:
URL: https://github.com/apache/shardingsphere/pull/38835
### What changed
- Skip MySQL system variable validation for user variables such as
`@test_var`.
- Add a unit test to verify `SET @test_var = 1` is recorded as a replayable
session variable.
### Why
MySQL user variables are valid session-scoped variables, but ShardingSphere
Proxy validated every non-global SET variable through the MySQL system variable
registry. This caused `SET @test_var = 1` to fail with `Unknown system variable
'@test_var'`.
### Verification
- Manually verified through ShardingSphere Proxy with MySQL protocol:
- `SET @test_var = 1;` executes successfully.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]