• unknown's avatar
    bug #22372 (LOAD DATA crashes the table with the geometry field) · ea7d3db0
    unknown authored
    The problem is that the GEOMETRY NOT NULL can't automatically set
    any value as a default one. We always tried to complete LOAD DATA
    command even if there's not enough data in file. That doesn't work
    for GEOMETRY NOT NULL. Now Field_*::reset() returns an error sign
    and it's checked in mysql_load()
    
    
    mysql-test/r/gis.result:
      test result
    mysql-test/t/gis.test:
      testcase
    sql/field.cc:
      reset() now returns error sign
    sql/field.h:
      Field_*::reset() now returns error sign if the field can't be reset
    sql/sql_load.cc:
      check if field can't be reset and return error if it's so
    ea7d3db0
sql_load.cc 27.6 KB