Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-1309

SystemCatalog.getTable doesn't support escaped databases with ``

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Won't Fix
    • 1.1.3
    • Icebox
    • MariaDB Server
    • None

    Description

      sysCat.getTable("`escaped database`","table") throws `escaped database`.table not found error.

      Provided SQL file and C++ file to reproduce the error.

      In addition mcsmyql has a strange behaviour regarding escaped database names too.

      --initialization to reproduce
      CREATE DATABASE `'test'`;
      USE `'test'`
      CREATE TABLE t1 (i int) engine=COLUMNSTORE;
      CREATE TABLE test.t1 (i int) engine=COLUMNSTORE;
       
      --Why does this not work?
      CREATE TABLE `'test'`.t2 (i int) engine=COLUMNSTORE;
       
      --But this works
      CREATE TABLE `'test'`.t3 (i int);
      SELECT * FROM `'test'`.t3;
      SELECT * FROM `'test'`.t1;
      

      Attachments

        1. MCSAPITest.cxx
          1 kB
        2. t1.sql
          0.1 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jens.rowekamp Jens Röwekamp (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.