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

Unsigned bigint overflow problem when using an index

    XMLWordPrintable

Details

    Description

      When using an index a query may present the following strange behaviour:

      1) A constant value is wrongly returned

      2) Results are not found
      2.b) Using >= =< instead of BETWEEN returns the results, but still constant is wrongly returned

      3) ERROR 1690 (22003): BIGINT value is out of range is not consistent

      - select count(*),9223372036854775807+4 from t1  where b>1;  ERROR
      - select count(*),9223372036854775808+4 from t1  where b>1;  OK
      

      And I think there are many other related side effects.

      Test case attached.

      Attachments

        Activity

          People

            bar Alexander Barkov
            claudio.nanni Claudio Nanni
            Votes:
            0 Vote for this issue
            Watchers:
            6 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.