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

single quote in DATA DIRECTORY breaks SHOW CREATE TABLE

    XMLWordPrintable

Details

    • Can result in data loss
    • Q3/2026 Server Maintenance

    Description

      e.g.

      --mkdir $MYSQL_TMP_DIR/o'hara
      eval create table t1 (a int) data directory="$MYSQL_TMP_DIR/o'hara";
      show create table t1;
      drop table t1;
      

      this prints

      CREATE TABLE `t1` (
        `a` int(11) DEFAULT NULL
      ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci DATA DIRECTORY='MYSQL_TMP_DIR/o'hara/'
      

      Attachments

        Issue Links

          Activity

            People

              sanja Oleksandr Byelkin
              Roel Roel Van de Paar
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0.5d Original Estimate - 0.5d
                  0.5d
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 7.25h
                  7.25h

                  Git Integration

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