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

Wrong error code/message with enforce_storage_engine and NO_ENGINE_SUBSTITUTION

Details

    Description

      MariaDB [test]> select @@enforce_storage_engine;
      +--------------------------+
      | @@enforce_storage_engine |
      +--------------------------+
      | InnoDB                   |
      +--------------------------+
      1 row in set (0.00 sec)
       
      MariaDB [test]> set sql_mode=NO_ENGINE_SUBSTITUTION;
      Query OK, 0 rows affected (0.00 sec)
       
      MariaDB [test]> create table t (i int) engine=MyISAM;
      ERROR 1286 (42000): Unknown storage engine 'MyISAM'

      It is of course expected that CREATE would produce an error, just not the error. If there is no suitable one, maybe it should be created.

      Attachments

        Issue Links

          Activity

            let's use ER_OPTION_PREVENTS_STATEMENT

            serg Sergei Golubchik added a comment - let's use ER_OPTION_PREVENTS_STATEMENT
            rucha174 Rucha Deodhar added a comment - https://github.com/MariaDB/server/commit/0d17ff2746741f5e0e27eb41b9625208d0716451

            The massage is wrong, there should name of the option passed not name of the engine

            sanja Oleksandr Byelkin added a comment - The massage is wrong, there should name of the option passed not name of the engine

            rucha174 Hi! It looks like the patch only needs a small change (i.e. ERROR HY000: The MariaDB server is running with the enforce_storage_engine option so it cannot execute this statement) to finish? Thanks!

            Roel Roel Van de Paar added a comment - rucha174 Hi! It looks like the patch only needs a small change (i.e. ERROR HY000: The MariaDB server is running with the enforce_storage_engine option so it cannot execute this statement) to finish? Thanks!

            People

              rucha174 Rucha Deodhar
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              5 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.