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

CONNECT: misleading error "table defined on itself"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 10.0.12
    • Fix Version/s: 10.0.14
    • Component/s: None
    • Labels:

      Description

      I issued something like this:

      MariaDB [test]> CREATE OR REPLACE TABLE target (id INT PRIMARY KEY) ENGINE = InnoDB;
      Query OK, 0 rows affected (0.44 sec)
      
      MariaDB [test]> CREATE OR REPLACE TABLE xyzzy
          -> ENGINE = CONNECT
          -> TABLE_TYPE = MYSQL
          -> CONNECTION = 'root:root@127.0.0.1/test/target'
          -> ;
      ERROR 1105 (HY000): This MySQL table is defined on itself
      

      I forgot "mysql://" in CONNECTION, but the error is misleading.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            bertrandop Olivier Bertrand added a comment -

            Trivial

            Show
            bertrandop Olivier Bertrand added a comment - Trivial

              People

              • Assignee:
                bertrandop Olivier Bertrand
                Reporter:
                f_razzoli Federico Razzoli
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h