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

Unescaped table name during detection of table structure

    XMLWordPrintable

Details

    Description

      Engine CONNECT doesn't escape table name when autodetecting table structure for TABLE_TYPE=MYSQL using SHOW columns FROM source_table.

      That means that following query fails:

      CREATE TABLE new_table ENGINE=CONNECT TABLE_TYPE=MYSQL CONNECTION='mysql://user:pass@hostname/db_name/85e3adc9789111e7960b00163e6c8245'
      

      Escaping table name within the CREATE doesn't help. The CREATE works, but the engine retrieves data using invalid double escaped query

      SELECT * FROM ``85e3adc9789111e7960b00163e6c8245``.
      

      The create works fine with explicit definition of columns.

      Attachments

        Activity

          People

            bertrandop Olivier Bertrand
            pavel_hadac Pavel Hadač
            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.