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

Unexpected error: Incorrect ASSOCIATIVE ARRAY KEY value

    XMLWordPrintable

Details

    • Can result in unexpected behaviour

    Description

      SET sql_mode=ORACLE;
      DELIMITER $$
      DECLARE
        TYPE t IS TABLE OF INT INDEX BY BIGINT;
        a t;
      BEGIN
        a(-9223372036854775807-1):= 10;   -- key is LONGLONG_MIN
        SELECT a(-9223372036854775807-1) AS c1;
      END;
      $$
      DELIMITER ;
      

      ERROR 1525 (HY000): Incorrect ASSOCIATIVE ARRAY KEY value: '-9223372036854775808'
      

      The error is not expected. It should return 10.

      Attachments

        Activity

          People

            bar Alexander Barkov
            bar Alexander Barkov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 0.25d
                0.25d

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.