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

"-0000000000000001" changes to "-1" in view definition, so type changes from bigint to int

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.4(EOL), 10.5, 10.6, 10.7(EOL), 10.8(EOL), 10.9(EOL), 10.10(EOL), 10.11
    • 10.5, 10.6, 10.11
    • None

    Description

      Test:

      SET SESSION debug_dbug="+d,Item_basic_value";
      CREATE TABLE t1 (a INT);
      INSERT INTO t1 VALUES (1),(2),(3);
      create view v1 as SELECT * FROM t1 WHERE a BETWEEN -0000000000000001 AND -1;
      select * from v1;
      drop view v11;
      drop table t1;
      

      Expected result:

      a
      Warnings:
      Note	1105	bin_eq=1 a=(bigint)-1 b=(int)-1
      

      Actual result:

      a
      Warnings:
      Note	1105	bin_eq=1 a=(int)-1 b=(int)-1
      

      Attachments

        Issue Links

          Activity

            People

              sanja Oleksandr Byelkin
              lstartseva Lena Startseva
              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.