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

sum() on information_schema.tables gets wrong result

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 10.11.5
    • None
    • None
    • CentOS 7.8

    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:
            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.