1. 06 Dec, 2006 1 commit
    • 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
  2. 05 Jul, 2006 1 commit
  3. 04 Jul, 2006 1 commit
    • unknown's avatar
      bug #14807 (GeomFromText() should return MYSQL_TYPE_GEOMETRY) · 51485919
      unknown authored
      we didn't have code creating GEOMETRY-type fields from Items (expression results)
      So i added this code
      
      
      mysql-test/r/gis.result:
        test result fixed
      mysql-test/t/gis.test:
        testcase added
      sql/item_geofunc.cc:
        Item_geometry_func::tmp_table_field implemented
      sql/item_geofunc.h:
        tmp_table_field() and get_geometry_type() declared
      51485919
  4. 27 Jun, 2006 1 commit
  5. 22 Jun, 2006 1 commit
    • unknown's avatar
      bug #10166 (Signed byte values cause data to be padded) · c7b48932
      unknown authored
      The AsBinary function returns VARCHAR data type with binary collation.
      It can cause problem for clients that treat that kind of data as
      different from BLOB type.
      So now AsBinary returns BLOB.
      
      
      mysql-test/r/gis.result:
        result fixed
      mysql-test/t/gis.test:
        test case added
      sql/item_geofunc.h:
        Now we return MYSQL_TYPE_BLOB for asBinary function
      c7b48932
  6. 15 Oct, 2005 1 commit
  7. 26 Sep, 2005 1 commit
  8. 21 Sep, 2005 1 commit
    • unknown's avatar
      Fix for bug #12839 (Endian support is absurd) · 67200656
      unknown authored
      mysql-test/r/gis.result:
        test result fixed
      mysql-test/t/gis.test:
        test case added
      sql/field.cc:
        ::construct calls added
      sql/item_geofunc.cc:
        ::construct calls added
      sql/spatial.cc:
        Geometry_*::init_from_wkb implemented
      sql/spatial.h:
        init_from_wkb methods declared
      67200656
  9. 27 Aug, 2005 1 commit
  10. 10 Aug, 2005 1 commit
    • unknown's avatar
      Fix for bug #10499 (Function creation with GEOMETRY return) · a5846386
      unknown authored
      mysql-test/r/gis.result:
        test result fixed
      mysql-test/t/gis.test:
        test case
      sql/sp_head.cc:
        m_geom_returns is sent to make_field
      sql/sp_head.h:
        m_geom_returns declared
      sql/sql_yacc.yy:
        m_geom_returns initializing added
      a5846386
  11. 05 Aug, 2005 1 commit
  12. 28 Jul, 2005 1 commit
    • unknown's avatar
      Added end marker for tests to make future merges easier · 0062e643
      unknown authored
      mysql-test/t/alias.test:
        Added end marker for test to make future merges easier
      mysql-test/t/alter_table.test:
        Added end marker for test to make future merges easier
      mysql-test/t/analyse.test:
        Added end marker for test to make future merges easier
      mysql-test/t/analyze.test:
        Added end marker for test to make future merges easier
        Fixed length of comment lines
      mysql-test/t/ansi.test:
        Added end marker for test to make future merges easier
      mysql-test/t/archive.test:
        Added end marker for test to make future merges easier
      mysql-test/t/auto_increment.test:
        Added end marker for test to make future merges easier
      mysql-test/t/backup.test:
        Added end marker for test to make future merges easier
      mysql-test/t/bdb-alter-table-1.test:
        Added end marker for test to make future merges easier
      mysql-test/t/bdb-alter-table-2.test:
        Added end marker for test to make future merges easier
      mysql-test/t/bdb-crash.test:
        Added end marker for test to make f...
      0062e643
  13. 29 Apr, 2005 1 commit
    • unknown's avatar
      Fix for #6553 and #8776 (no errors on bad spatial data) · d1c51472
      unknown authored
      mysql-test/r/gis-rtree.result:
        test result fixed
      mysql-test/r/gis.result:
        test result fixed
      mysql-test/t/gis-rtree.test:
        test case fixed
      mysql-test/t/gis.test:
        test case added
      sql/field.cc:
        error messages launched now when we try to put bad spatial
        data in the GEOMETRY field
      sql/field.h:
        interface fixed
      sql/item_geofunc.cc:
        bad_data sign now instead of NULL now returned from
        Item_geometry_from_text::val_str
      sql/share/errmsg.txt:
        error message added
      sql/spatial.cc:
        bad_geometry data instance
      sql/spatial.h:
        bad_geometry_data declaration
      sql/sql_base.cc:
        messages now created in store_* function
      d1c51472
  14. 22 Oct, 2004 1 commit
    • unknown's avatar
      Fix for bug #6117 (Centroid() crashes server) · 86b578da
      unknown authored
      I learned that one shouldn't use String::set in val_str() methods...
      
      
      mysql-test/r/gis.result:
        Test result for #6117
      mysql-test/t/gis.test:
        Test case #6117
      sql/item_geofunc.cc:
        String::set doesn't work here
      sql/spatial.cc:
        Error message isn't needed here
      86b578da
  15. 22 Sep, 2004 1 commit
    • unknown's avatar
      Additional fix for bug #5136 (Geometry object is corrupted when queried) · 57517f3a
      unknown authored
      CREATE TABLE t1 SELECT POINT(1,2); fixed
      
      
      mysql-test/r/gis.result:
        Appropriate test result
      mysql-test/t/gis.test:
        test case
      sql/item_geofunc.cc:
        Item_geometry_func::fix_lengths_and_dec implementation
        several fix_length_and_dec's not needed now
      sql/item_geofunc.h:
        Item_geometry_func class presented
      57517f3a
  16. 15 Sep, 2004 1 commit
    • unknown's avatar
      Fix for bug #5532 (error 22 inserting GIS data) · 12d8ec6e
      unknown authored
      This bug is the result of weird error happening with mi_float8get and double
      arythmetic. I described that in 'Bug that looks potentially dangerous' email
      
      
      myisam/rt_mbr.c:
        *ab_area was changed with the local variable just to make the function
        working without errors
      mysql-test/r/gis.result:
        appropriate test result
      mysql-test/t/gis.test:
        Test case
      12d8ec6e
  17. 26 Aug, 2004 1 commit
  18. 27 May, 2004 1 commit
    • unknown's avatar
      WL#1163 (Make spatial code separable for other parts) · f2a53248
      unknown authored
      --with-geometry and
      --with-embedded-privilege-control
      configure switches added
      
      
      acconfig.h:
        necessary lines added
      myisam/mi_open.c:
        #include added
      mysql-test/t/gis-rtree.test:
        test modified to take HAVE_GEOMETRY in account
      mysql-test/t/gis.test:
        test modified to take HAVE_GEOMETRY in account
      sql/mysql_priv.h:
        option's variables added
      sql/mysqld.cc:
        option's handling added
      sql/set_var.cc:
        option's descriptions added
      f2a53248
  19. 17 Mar, 2004 1 commit
    • unknown's avatar
      Fix for #233 · b0464da9
      unknown authored
      test for IGNORE added
      
      
      mysql-test/r/gis.result:
        test result for IGNORE added
      mysql-test/t/gis.test:
        test for IGNORE added
      b0464da9
  20. 16 Mar, 2004 1 commit
    • unknown's avatar
      Fix for #233 (final part) · 548eedc3
      unknown authored
      mysql-test/r/gis.result:
        test result added
      mysql-test/t/gis.test:
        test case added
      sql/field.h:
        now set_field_to_null can return -1
      sql/field_conv.cc:
        now set_field_to_null* can return -1
      548eedc3
  21. 04 Mar, 2004 1 commit
    • unknown's avatar
      Optimized GIS functions · 290f3321
      unknown authored
      heap/hp_delete.c:
        Added comments
      mysql-test/r/gis.result:
        Updated results after name changes (all results line are unchanged)
      mysql-test/r/show_check.result:
        Update test results after fix in hp_delete.cc
      mysql-test/t/gis.test:
        Changed table names to longer, hopefully non conflicting ones.
        Added missing drop table
      mysys/hash.c:
        Inendation cleanup
      mysys/tree.c:
        Updated comments
        Decrease tree->allocated on delete (for status)
      sql/field.cc:
        Added safety checking for GIS objects
      sql/gstream.cc:
        Added copyright message
        Made a lot of speed/space optimizations
        Changed class names to be MySQL compliant
      sql/gstream.h:
        Made a lot of speed/space optimizations
        Changed class names to be MySQL compliant
      sql/item_create.cc:
        Indentation fixup
      sql/item_geofunc.cc:
        Use new gis interface functions and new gis class names.
        Simple optimizations
        Indentation fixups
        Fixed a lot of unlikely but possible errors.
      sql/item_geofunc.h:
        Moved SRID_SIZE to spatial.h
      sql/spatial.cc:
        Added copyright message
        Made a lot of speed/space optimizations
        Changed class names to be MySQL compliant
      sql/spatial.h:
        Made a lot of speed/space optimizations
        Changed class names to be MySQL compliant
        Indentation fixes
        Use bool instead of int as result type for functions that only return 0 or 1
      sql/sql_string.cc:
        Simple optimizations
      sql/sql_string.h:
        Simple cleanups
      sql/structs.h:
        Added LEX_STRING_WITH_INIT (needed by spatial.cc)
      290f3321
  22. 06 Nov, 2003 1 commit
    • unknown's avatar
      fixed printability of gis functions · 46032c09
      unknown authored
      code covarage for srid, GeomFromText with 2 parameters
      code covarage foe print() method of gis functions
      
      
      mysql-test/r/gis.result:
        code covarage for srid, GeomFromText with 2 parameters
        code covarage foe print() method of gis functions
      mysql-test/t/gis.test:
        code covarage for srid, GeomFromText with 2 parameters
        code covarage foe print() method of gis functions
        + commented test for issimple() (bugreport sent)
      sql/item_geofunc.h:
        fixed printability of gis functions
      46032c09
  23. 03 Apr, 2003 1 commit
  24. 02 Apr, 2003 1 commit
    • unknown's avatar
      GEOMCOLLFROMWKB(), GEOMETRYCOLLECTIONFROMWKB(), · 1e32810a
      unknown authored
      LINEFROMWKB(), LINESTRINGFROMWKB(), MLINEFROMWKB(), MPOINTFROMWKB(),
      MPOLYFROMWKB(), MULTILINESTRINGFROMWKB(), MULTIPOINTFROMWKB(),
      MULTIPOLYGONFROMWKB(), POINTFROMWKB(), POLYFROMWKB(), POLYGONFROMWKB()
      functions have been added (as synonyms for GEOMFROMWKB()).
      
      
      mysql-test/t/gis.test:
        GEOMCOLLFROMWKB(), GEOMETRYCOLLECTIONFROMWKB(),
        LINEFROMWKB(), LINESTRINGFROMWKB(), MLINEFROMWKB(), MPOINTFROMWKB(),
        MPOLYFROMWKB(), MULTILINESTRINGFROMWKB(), MULTIPOINTFROMWKB(),
        MULTIPOLYGONFROMWKB(), POINTFROMWKB(), POLYFROMWKB(), POLYGONFROMWKB()
        functions have been added (as synonyms for GEOMFROMWKB()).
      sql/lex.h:
        GEOMCOLLFROMWKB(), GEOMETRYCOLLECTIONFROMWKB(),
        LINEFROMWKB(), LINESTRINGFROMWKB(), MLINEFROMWKB(), MPOINTFROMWKB(),
        MPOLYFROMWKB(), MULTILINESTRINGFROMWKB(), MULTIPOINTFROMWKB(),
        MULTIPOLYGONFROMWKB(), POINTFROMWKB(), POLYFROMWKB(), POLYGONFROMWKB()
        functions have been added (as synonyms for GEOMFROMWKB()).
      1e32810a
  25. 31 Mar, 2003 1 commit
  26. 27 Mar, 2003 1 commit
    • unknown's avatar
      More OpenGIS compatibility: · 6977525d
      unknown authored
      Point, MultiLine, Poligom, etc, are now not aliases
      for Geometry, but separate field types.
      
      6977525d
  27. 18 Mar, 2003 1 commit
    • unknown's avatar
      SRID support. · f21f78ea
      unknown authored
      GeomertyFromWKB() function.
      SRID() function.
      ::store() methods for Field_geom.
      Code cleanup.
      
      
      myisam/sp_key.c:
        SRID support.
      mysql-test/r/gis.result:
        We should use GeometryFromWKB().
      mysql-test/t/gis.test:
        We should use GeometryFromWKB().
      sql/field.cc:
        SRID support.
        ::store() methods for Field_geom.
        Code cleanup.
      sql/field.h:
        SRID support.
        ::store() methods for Field_geom.
        Code cleanup.
      sql/item_cmpfunc.cc:
        SRID support.
        Code cleanup.
      sql/item_create.cc:
        Code cleanup.
      sql/item_create.h:
        Code cleanup.
      sql/item_func.cc:
        SRID support.
        Code cleanup.
      sql/item_func.h:
        SRID support.
      sql/item_strfunc.cc:
        SRID support.
        GeometryFromWKB() function.
        Code cleanup.
      sql/item_strfunc.h:
        SRID support.
        GeometryFromWKB() function.
        Code cleanup.
      sql/lex.h:
        GeometryFromWKB() function.
        SRID() function.
      sql/spatial.cc:
        Code cleanup.
      sql/spatial.h:
        Code cleanup.
      sql/sql_yacc.yy:
        Fix for xxxFromText() functions.
        GeometryFromWKB() function.
      f21f78ea
  28. 06 Mar, 2003 1 commit
  29. 01 Mar, 2003 1 commit