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

CAST(AS UNSIGNED) fails with --view-protocol

Details

    Description

      This MTR test:

      SELECT CAST(-1e0 AS UNSIGNED);
      

      fails when executed with --view-protocol with this diff:

      @@ -1,5 +1,5 @@
       SELECT CAST(-1e0 AS UNSIGNED);
       CAST(-1e0 AS UNSIGNED)
      -0
      +18446744073709551615
       Warnings:
      -Note	1916	Got overflow when converting '-1' to UNSIGNED BIGINT. Value truncated
      +Note	1105	Cast to unsigned converted negative integer to it's positive complement
      

      Attachments

        Issue Links

          Activity

            Hello serg,

            Can you please review a patch for this bug?

            https://github.com/MariaDB/server/commit/c50eed1e904b5c3a689a4c1e5036863021f2fbbc

            Thanks.

            bar Alexander Barkov added a comment - Hello serg , Can you please review a patch for this bug? https://github.com/MariaDB/server/commit/c50eed1e904b5c3a689a4c1e5036863021f2fbbc Thanks.

            People

              bar Alexander Barkov
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.