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

DROP SERVER IF EXISTS does not return a warning

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.1.67, 5.2.14, 5.3.12, 10.1, 10.0, 5.5
    • Fix Version/s: 10.1
    • Component/s: Admin statements
    • Labels:
    • Environment:
      Ubuntu 14.04

      Description

      I would imagine DROP SERVER IF EXISTS is supposed to return a warning if the server does not exist, as do all the other "IF EXISTS" DROP statements. However, no warning appears.

      DROP SERVER server_1;
      ERROR 1477 (HY000): The foreign server name you are trying to reference does not exist. Data source error:  server_1
      
      DROP SERVER IF EXISTS server_1;
      Query OK, 0 rows affected (0.00 sec)
      

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            elenst Elena Stepanova added a comment -

            Same in MySQL.
            Do you feel like creating a bug report at bugs.mysql.com? (I haven't found one about it)

            Show
            elenst Elena Stepanova added a comment - Same in MySQL. Do you feel like creating a bug report at bugs.mysql.com? (I haven't found one about it)

              People

              • Assignee:
                Unassigned
                Reporter:
                greenman Ian Gilfillan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: