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

EMPTY_STRING_IS_NULL: error setting a not-NULL system variable to empty string

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.3
    • 10.3
    • Variables
    • None

    Description

      This script works fine:

      SET sql_mode='';
      SET optimizer_switch='';
      

      Now if I change sql_mode, the statement setting optimizer_switch starts to fail:

      SET sql_mode=EMPTY_STRING_IS_NULL;
      SET optimizer_switch='';
      

      ERROR 1231 (42000): Variable 'optimizer_switch' can't be set to the value of 'NULL'
      

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.