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

Move geometry specific code in Field_blob::get_key_image() to Field_geom

    Details

      Description

      The code in field.cc

      uint Field_blob::get_key_image(uchar *buff,uint length, imagetype type_arg)
      {
      #ifdef HAVE_SPATIAL
        if (type_arg == itMBR)
        {
          // handle spatial key
          return ...;
        }
      #endif
        // handle scalar key
        return ...;
      }
      

      To turn GIS implementation into a data type plugin, let's do the following:

      • move this code from Field_blob to Field_geom.
      • move these dependencoes from item.h to item_geofunc.h:

        #include "gstream.h"
        #include "spatial.h"
        

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bar Alexander Barkov
                Reporter:
                bar Alexander Barkov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: