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

SQL inside an anonymous block is executed with wrong SQL_MODE

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • N/A
    • 10.1.1
    • None
    • None

    Description

      Note: It might be related to MDEV-6606 or even have the same root cause.

      create table t1 (a int);
      # Query OK, 0 rows affected (0.98 sec)
       
      set sql_mode='';
      # Query OK, 0 rows affected (0.00 sec)
       
      select a from t1 having a > 1;
      # Empty set (0.01 sec)
       
      delimiter |
      begin not atomic select a from t1 having a > 1; end |
      # ERROR 1463 (42000): Non-grouping field 'a' is used in HAVING clause

      bb-MDEV-5317
      commit 6502f42f679e605fcdbd6c8b49d2813f553001b0
      Author: Sergei Golubchik <serg@mariadb.org>
      Date:   Mon Aug 18 14:28:48 2014 +0200

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.