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

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.3
    • Fix Version/s: 10.3
    • Component/s: Variables
    • Labels:
      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

              Assignee:
              bar Alexander Barkov
              Reporter:
              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.