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

Empty string is erroneously allowed as a GEOMETRY column value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.5, 10.0, 10.1, 10.2, 10.3
    • Fix Version/s: 10.3, 10.4
    • Component/s: GIS
    • Labels:
      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

              Assignee:
              holyfoot Alexey Botchkov
              Reporter:
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: