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

Inconsistent warnings upon using EITS with a bit column

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5, 10.6, 10.7(EOL)
    • 10.5, 10.6
    • Optimizer
    • None

    Description

      CREATE TABLE t (b bit(64));
      INSERT INTO t VALUES (x'BE562B1A99001918');
       
      ANALYZE TABLE t PERSISTENT FOR ALL;
      SET use_stat_tables= PREFERABLY;
       
      SELECT * FROM t;
      SELECT * FROM t;
       
      # Cleanup
      DROP TABLE t;
      

      The first SELECT triggers warnings, but the second identical one doesn't:

      10.2 5d57e04b

      SELECT * FROM t;
      b
      �V+��
      Warnings:
      Warning	1292	Truncated incorrect INTEGER value: '13715197108439488792'
      Warning	1292	Truncated incorrect INTEGER value: '13715197108439488792'
      SELECT * FROM t;
      b
      �V+��
      

      Also reproducible with InnoDB, Aria.
      Not reproducible without use_stat_tables.

      Attachments

        Issue Links

          Activity

            People

              psergei Sergei Petrunia
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.