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

Empty string is erroneously allowed as a GEOMETRY column value

    XMLWordPrintable

Details

    • Bug
    • Status: In Progress (View Workflow)
    • Major
    • Resolution: Unresolved
    • 5.5(EOL), 10.0(EOL), 10.1(EOL), 10.2(EOL), 10.3(EOL)
    • 10.5, 10.6, 10.11
    • GIS
    • None

    Description

      DROP TABLE IF EXISTS t1;
      CREATE TABLE t1 (id INT, a GEOMETRY);
      INSERT INTO t1 VALUES (10,'');
      SELECT * FROM t1;
      

      +------+------+
      | id   | a    |
      +------+------+
      |   10 |      |
      +------+------+
      

      Empty string is not a valid GEOMETRY value, it should be prohibited.

      Attachments

        Issue Links

          Activity

            People

              holyfoot Alexey Botchkov
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.