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

GIS Query 'xxxx.geometry_columns' doesn't exist

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.0.15
    • Fix Version/s: 10.0
    • Component/s: GIS
    • Labels:
      None
    • Sprint:
      10.0.20

      Description

      After migration from 5.5 to 10.0
      Activating SQL ERROR plugin , i get a bunch of SQL errors
      http://pastebin.com/mrCksMrW

      The offending query look like this
      $req='SELECT p.num_ville,p.logo_global_simple as LOGO, v.x as long_dec,v.y as lat_dec FROM '.$this->latable_previ.' p INNER JOIN ville_coordonnees v ON v.num_ville=p.num_ville WHERE MBRContains(geomfromtext("POLYGON(('.round($oPoint_bg->x,2).' '.round($oPoint_bg->y,2).','.round($oPoint_hd->x,2).' '.round($oPoint_bg->y,2).','.round($oPoint_hd->x,2).' '.round($oPoint_hd->y,2).','.round($oPoint_hd->x,2).' '.round($oPoint_bg->y,2).','.round($oPoint_bg->x,2).' '.round($oPoint_bg->y,2).'))"),v.coord) and v.num_zoom_carto & '.$this->letypezoom.' ='.$this->letypezoom.' and p.date_heure ="'.$this->lecheance.'" and v.num_pays='.$this->num_pays;

      i created the table following

      CREATE TABLE geometry_columns (
      `F_TABLE_CATALOG` varchar(256) DEFAULT NULL,
      `F_TABLE_SCHEMA` varchar(256) DEFAULT NULL,
      `F_TABLE_NAME` varchar(256) NOT NULL,
      `F_GEOMETRY_COLUMN` varchar(256) NOT NULL,
      `COORD_DIMENSION` int(11) DEFAULT NULL,
      `SRID` int(11) DEFAULT NULL,
      `TYPE` varchar(256) NOT NULL
      ) ENGINE=InnoDB DEFAULT CHARSET=latin1;

      Found from this blog entry http://sickel.net/blogg/?p=665
      This trick calm down the error log but is that enough i don't really know ?
      Any idea if this is a bug or a feature ?

        Gliffy Diagrams

          Attachments

            Activity

            There are no comments yet on this issue.

              People

              • Assignee:
                holyfoot Alexey Botchkov
                Reporter:
                stephane@skysql.com VAROQUI Stephane
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Agile