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

ConnectSE: improve table discovery error message when local database doesn't exist

    XMLWordPrintable

Details

    Description

      MariaDB [(none)]> CREATE OR REPLACE TABLE test.t1 ENGINE = CONNECT TABLE_TYPE = MYSQL CONNECTION=[...]
      ERROR 1939 (HY000): Engine CONNECT failed to discover table `test`.`t1` with 'CREATE TABLE whatever (`id` BIGINT UNSIGNED NOT NULL) TABLE_TYPE='MYSQL' [...]
       
      MariaDB [(none)]> use test;
      ERROR 1049 (42000): Unknown database 'test'
       
      MariaDB [(none)]> create database test;
      Query OK, 1 row affected (0.001 sec)
       
      MariaDB [(none)]> CREATE OR REPLACE TABLE test.t1 ENGINE = CONNECT TABLE_TYPE = MYSQL [...]
      Query OK, 0 rows affected (0.027 sec)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            mg MG
            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.