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

User variable not parsed as geometry variable in geometry function

Details

    Description

      Repeatable with

      set @g=  point(1, 1); 
      select ST_AsWKT(GeometryCollection(Point(44, 6), @g));
       
      ERROR 1367 (22007) at line 1: Illegal non geometric '@`g`' value found during parsing
      

      The same bug exists in MySQL 8.0 with slightly different error message (note braces).

      ERROR 1367 (22007) at line 1: Illegal non geometric '(@`g`)' value found during parsing
      

      Attachments

        1. 10.4-test.diff
          4 kB
          Alexander Barkov
        2. mariadb-bin-10.5.24-geom-user-var.000001
          0.7 kB
          Alexander Barkov

        Issue Links

          Activity

            Transition Time In Source Status Execution Times
            Alexey Botchkov made transition -
            Open In Progress
            52d 21h 24m 1
            Alexey Botchkov made transition -
            In Progress Stalled
            217d 1h 39m 1
            Julien Fritsch made transition -
            Stalled In Progress
            412d 6h 41m 1
            Alexey Botchkov made transition -
            In Progress In Review
            2d 13h 27m 1
            Alexander Barkov made transition -
            Stalled In Review
            1m 25s 1
            Alexey Botchkov made transition -
            In Review Stalled
            33d 4h 35m 2
            Alexander Barkov made transition -
            Stalled Closed
            2h 58m 1

            People

              bar Alexander Barkov
              anel Anel Husakovic
              Votes:
              1 Vote for this issue
              Watchers:
              6 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.