Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-36397

MTR: Write a record when change_user command is executed

Details

    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

          There are no comments yet on this issue.

          People

            serg Sergei Golubchik
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.