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

Virtual POINT column empty value

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.6, 10.11, 13.0, 13.1
    • 13.1
    • GIS, Virtual Columns
    • None

    Description

      Virtual POINT column empty value

      CREATE OR REPLACE TABLE t1 (a VARBINARY(128) NOT NULL, b POINT AS (a));
      INSERT INTO t1 (a) VALUES ('test');
      SELECT * FROM t1;
      

      +------+------+
      | a    | b    |
      +------+------+
      | test |      |
      +------+------+
      1 row in set, 1 warning (0.000 sec)
      

      The value 'test' is obviously a wrong binary POINT value. The column 'b' return an empty string as a result, which is a wrong POINT value.

      It should probably mark the column 'b' as nullable and return NULL.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:

                Git Integration

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