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

sum() on information_schema.tables gets wrong result

    XMLWordPrintable

Details

    • Not for Release Notes

    Description

      The sum function without a predicate returns wrong result

      MariaDB [(none)]> select sum(DATA_LENGTH)
          -> from information_schema.TABLES
          -> ;
      +------------------+
      | sum(DATA_LENGTH) |
      +------------------+
      |           106496 |
      +------------------+
       
      select sum(DATA_LENGTH)
          -> from information_schema.TABLES
          -> where table_name like '%'
          -> ;
      +------------------+
      | sum(DATA_LENGTH) |
      +------------------+
      |     658573483127 |
      +------------------+
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            Moroz Vova Moroz
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.