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

bit_and returns garbage on empty set

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.1.26, 10.3.22
    • N/A
    • Data types, Documentation
    • None
    • linux

    Description

      To reproduce:

      create table bitsbug (s Boolean) engine=heap;
      select bit_and(s) from bitsbug;
      +----------------------+
      | bit_and(s)           |
      +----------------------+
      | 18446744073709551615 |
      +----------------------+
       
      insert into bitsbug values (null);
      select bit_and(s) from bitsbug;
      +----------------------+
      | bit_and(s)           |
      +----------------------+
      | 18446744073709551615 |
      +----------------------+
       
      insert into bitsbug values (0);
      select bit_and(s) from bitsbug;
      +------------+
      | bit_and(s) |
      +------------+
      |          0 |
      +------------+
      

      Attachments

        Activity

          People

            greenman Ian Gilfillan
            johbjo09 Johan Björklund
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.