Details
-
Task
-
Status: Needs Feedback (View Workflow)
-
Critical
-
Resolution: Unresolved
Description
change_user command should be reflected in the MTR output the same way as connection changes. It can be put under the same enable_connect_log condition, which is ON by default nowadays, or even be made unconditional.
CREATE USER foo; |
--connect (con1,localhost,root,,)
|
SELECT CURRENT_USER(); |
--change_user foo
|
SELECT CURRENT_USER(); |
--disconnect con1
|
--connection default
|
DROP USER foo; |
main ab468e33aff110b44a31ce0350894906ff4bc757 |
CREATE USER foo; |
connect con1,localhost,root,,; |
SELECT CURRENT_USER(); |
CURRENT_USER() |
root@localhost
|
<-- HERE we should have the extra record--> |
SELECT CURRENT_USER(); |
CURRENT_USER() |
foo@%
|
disconnect con1;
|
connection default; |
DROP USER foo; |
So, the record should be at "<-- HERE we should have the extra record-->".
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Description |
{{change_user}} command should be reflected in the MTR output the same way as connection changes. It can be put under the same {{enable_connect_log}} condition, which is ON by default nowadays, or even be made unconditional.
{code:sql} CREATE USER foo; --connect (con1,localhost,root,,) SELECT CURRENT_USER(); --change_user foo SELECT CURRENT_USER(); --disconnect con1 --connection default DROP USER foo; {code} {code:sql|title=ab468e33aff110b44a31ce0350894906ff4bc757} CREATE USER foo; connect con1,localhost,root,,; SELECT CURRENT_USER(); CURRENT_USER() root@localhost <-- HERE we should have the extra record--> SELECT CURRENT_USER(); CURRENT_USER() foo@% disconnect con1; connection default; DROP USER foo; {code} So, the record should be at "<-- HERE we should have the extra record-->". |
{{change_user}} command should be reflected in the MTR output the same way as connection changes. It can be put under the same {{enable_connect_log}} condition, which is ON by default nowadays, or even be made unconditional.
{code:sql} CREATE USER foo; --connect (con1,localhost,root,,) SELECT CURRENT_USER(); --change_user foo SELECT CURRENT_USER(); --disconnect con1 --connection default DROP USER foo; {code} {code:sql|title=main ab468e33aff110b44a31ce0350894906ff4bc757} CREATE USER foo; connect con1,localhost,root,,; SELECT CURRENT_USER(); CURRENT_USER() root@localhost <-- HERE we should have the extra record--> SELECT CURRENT_USER(); CURRENT_USER() foo@% disconnect con1; connection default; DROP USER foo; {code} So, the record should be at "<-- HERE we should have the extra record-->". |
Labels | beginner-friendly |
Assignee | Sergei Golubchik [ serg ] |
Labels | beginner-friendly | beginner-friendly contribution |
Due Date | 2025-06-01 |
Assignee | Sergei Golubchik [ serg ] | Sergey Vojtovich [ svoj ] |
Fix Version/s | N/A [ 14700 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Assignee | Sergey Vojtovich [ svoj ] | Sergei Golubchik [ serg ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Priority | Trivial [ 5 ] | Critical [ 2 ] |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | N/A [ 14700 ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Status | Stalled [ 10000 ] | Needs Feedback [ 10501 ] |
I'm currently working on this!