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

    XMLWordPrintable

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

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 0.25d
                  0.25d

                  Git Integration

                    Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.