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

        Issue Links

          Activity

            holyfoot Alexey Botchkov added a comment - https://github.com/MariaDB/server/commit/1b9561fde4436568e210f96837e8351227261af8

            Hello Alexey,

            I propose instead of adding a new enum for variable data type, implement this in a more generic way using Type_handler.

            Please review this version:
            https://github.com/MariaDB/server/commit/7d71e9901bf171fbac0f95e290b5612beedea90f

            bar Alexander Barkov added a comment - Hello Alexey, I propose instead of adding a new enum for variable data type, implement this in a more generic way using Type_handler. Please review this version: https://github.com/MariaDB/server/commit/7d71e9901bf171fbac0f95e290b5612beedea90f

            ok to push.

            holyfoot Alexey Botchkov added a comment - ok to push.

            Verified that 10.5->10.4 replication of user variables does not break.
            The 10.4 slave ignores the extra CHUNK_DATA_TYPE_NAME chunk in the User_var_log_event.

            bar Alexander Barkov added a comment - Verified that 10.5->10.4 replication of user variables does not break. The 10.4 slave ignores the extra CHUNK_DATA_TYPE_NAME chunk in the User_var_log_event.

            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.