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

    • Q4/2026 Server Development

    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

            sanja Oleksandr Byelkin
            mg MG
            Georgi Kodinov Georgi Kodinov
            Oleksandr Byelkin Oleksandr Byelkin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 0d
                0d
                Remaining:
                Time Spent - 40m Remaining Estimate - 2h 20m
                2h 20m
                Logged:
                Time Spent - 40m Remaining Estimate - 2h 20m
                40m

                Git Integration

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