Details

    Description

      This query crashes the server:

      SELECT INTERVAL(ROW(1,1),ROW(1,2));
      

      Attachments

        Issue Links

          Activity

            A related problem:

            This script erroneously return a result, it should return an error instead,
            as it mixes ROW and scalar expressions in the INTERVAL function:

            SET sql_mode=DEFAULT;
            DELIMITER $$
            BEGIN NOT ATOMIC
              DECLARE v ROW(a INT);
              SELECT INTERVAL(v,'a','b');
            END $$
            DELIMITER ;
            

            +---------------------+
            | INTERVAL(v,'a','b') |
            +---------------------+
            |                  -1 |
            +---------------------+
            

            bar Alexander Barkov added a comment - A related problem: This script erroneously return a result, it should return an error instead, as it mixes ROW and scalar expressions in the INTERVAL function: SET sql_mode= DEFAULT ; DELIMITER $$ BEGIN NOT ATOMIC DECLARE v ROW(a INT ); SELECT INTERVAL(v, 'a' , 'b' ); END $$ DELIMITER ; +---------------------+ | INTERVAL(v,'a','b') | +---------------------+ | -1 | +---------------------+

            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.