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

mariadb-dump doesn't always quote identifiers

    XMLWordPrintable

Details

    • Can result in unexpected behaviour

    Description

      create table t1 (a int);
      create trigger `tr 1` before insert on t1 for each row set new.a=new.a+1;
      exec $MYSQL_DUMP --compact --add-drop-trigger test;
      drop table t1;
       
      insert into mysql.func values('foo bar', 0, 'udf''example.so', 'function');
      exec $MYSQL_DUMP --compact --system=udfs test;
      delete from mysql.func;
       
      change master to master_host='master''host', master_port=3306,
                       master_log_file='b''n.000001', master_log_pos=4;
      exec $MYSQL_DUMP --compact --dump-slave --include-master-host-port test;
      

      Reported by Ben Bidner (Automattic.com Security Team).

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0d
                  0d
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 0.25d
                  0.25d

                  Git Integration

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