[MDEV-7548] GIS Query 'xxxx.geometry_columns' doesn't exist Created: 2015-02-05  Updated: 2023-01-22  Resolved: 2023-01-22

Status: Closed
Project: MariaDB Server
Component/s: GIS
Affects Version/s: 10.0.15
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: VAROQUI Stephane Assignee: Unassigned
Resolution: Incomplete Votes: 0
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 ?



 Comments   
Comment by Sergei Golubchik [ 2022-11-20 ]

What is the bug about? Could you please elaborate?

Generated at Thu Feb 08 07:20:26 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.