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

Erroneous SET STATEMENT produces two identical errors

    XMLWordPrintable

    Details

      Description

      MariaDB [test]> set statement non_existing=1 for select 1;
      ERROR 1193 (HY000): Unknown system variable 'non_existing'
      MariaDB [test]> show errors;
      +-------+------+----------------------------------------+
      | Level | Code | Message                                |
      +-------+------+----------------------------------------+
      | Error | 1193 | Unknown system variable 'non_existing' |
      | Error | 1193 | Unknown system variable 'non_existing' |
      +-------+------+----------------------------------------+
      2 rows in set (0.00 sec)
       
      MariaDB [test]> select @@error_count;
      +---------------+
      | @@error_count |
      +---------------+
      |             2 |
      +---------------+
      1 row in set (0.00 sec)

      It looks redundant.

      commit e64f5d8f758bcc1a8856ba9fba01780533f80747
      Author: Oleksandr Byelkin <sanja@mariadb.com>
      Date:   Sun Oct 26 16:27:54 2014 +0100
       
          Fixed test suite global variable saving

      All the same in Percona server.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sanja Oleksandr Byelkin
              Reporter:
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.