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

SHOW CREATE SERVER does not quote foreign data wrapper names

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.11, 11.4, 11.8, 12.3, 13.0, 13.1, 13.2, 12.8
    • 10.11, 11.4, 11.8, 12.3, 13.0, 13.1, 13.2, 12.8
    • None
    • None

    Description

      SHOW CREATE SERVER prints the wrapper name without quoting, producing invalid SQL when the name contains special characters.

      create server srv foreign data wrapper `test-wrapper` options (host 'localhost');
      show create server srv;
      Server	Create Server
      srv	CREATE SERVER `srv` FOREIGN DATA WRAPPER test-wrapper OPTIONS (host 'localhost');
      drop server srv;
      CREATE SERVER `srv` FOREIGN DATA WRAPPER test-wrapper OPTIONS (host 'localhost');
      ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-wrapper OPTIONS (host 'localhost')' at line 1
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              svoj Sergey Vojtovich
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.