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

ALTER on a temporary table generates an audit event

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 5.5.31
    • 5.5.32
    • None

    Description

      A comment in audit_null.test says "temp table generates no audit events", but ALTER TABLE still does. I'm not sure if it's intentional.

      Test output:

      install plugin audit_null soname 'adt_null';
      create temporary table t1 (i int);
      alter table t1 add j int;
      drop table t1;
      uninstall plugin audit_null;
      Warnings:
      Warning	1620	Plugin is busy and will be uninstalled on shutdown
      root[root] @ localhost []	>> create temporary table t1 (i int)
      root[root] @ localhost []	>> alter table t1 add j int
      root[root] @ localhost []	test.t1 : alter
      root[root] @ localhost []	>> drop table t1
      root[root] @ localhost []	>> uninstall plugin audit_null
      root[root] @ localhost []	mysql.plugin : write

      Test case:

      install plugin audit_null soname 'adt_null';
       
      create temporary table t1 (i int);
      alter table t1 add j int;
      drop table t1;
       
      uninstall plugin audit_null;
       
      let $MYSQLD_DATADIR= `SELECT @@datadir`;
      cat_file $MYSQLD_DATADIR/audit_null_tables.log;

      bzr version-info

      revision-id: sergii@pisem.net-20130521165635-k9lcq5g95glmrv6r
      revno: 3778
      branch-nick: 5.5

      Attachments

        Issue Links

          Activity

            elenst Elena Stepanova created issue -
            elenst Elena Stepanova made changes -
            Field Original Value New Value
            elenst Elena Stepanova made changes -
            serg Sergei Golubchik made changes -
            Priority Trivial [ 5 ] Major [ 3 ]
            serg Sergei Golubchik made changes -
            Labels plugins
            serg Sergei Golubchik made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            serg Sergei Golubchik made changes -
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            Workflow defaullt [ 27521 ] MariaDB v2 [ 45850 ]
            ratzpo Rasmus Johansson (Inactive) made changes -
            Workflow MariaDB v2 [ 45850 ] MariaDB v3 [ 66542 ]
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 66542 ] MariaDB v4 [ 146727 ]

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

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