Fixed query of gis map. Tiquet: #3011
(cherry picked from commit e9ffc06cf8
)
This commit is contained in:
parent
ce146675c6
commit
5c59a75492
|
@ -1193,7 +1193,7 @@ function gis_get_map_data($idMap) {
|
||||||
$connections = false;
|
$connections = false;
|
||||||
switch ($config["dbtype"]) {
|
switch ($config["dbtype"]) {
|
||||||
case "mysql":
|
case "mysql":
|
||||||
$sql = "SELECT t1.tgis_map_con_id_tmap_con AS id_conection
|
$sql = "SELECT t1.tgis_map_con_id_tmap_con AS id_conection,
|
||||||
t1.default_map_connection AS `default`,
|
t1.default_map_connection AS `default`,
|
||||||
SUM(t2.num_zoom_levels) AS num_zoom_levels
|
SUM(t2.num_zoom_levels) AS num_zoom_levels
|
||||||
FROM tgis_map_has_tgis_map_con t1
|
FROM tgis_map_has_tgis_map_con t1
|
||||||
|
@ -1205,7 +1205,7 @@ function gis_get_map_data($idMap) {
|
||||||
break;
|
break;
|
||||||
case "postgresql":
|
case "postgresql":
|
||||||
case "oracle":
|
case "oracle":
|
||||||
$sql = "SELECT t1.tgis_map_con_id_tmap_con AS id_conection
|
$sql = "SELECT t1.tgis_map_con_id_tmap_con AS id_conection,
|
||||||
t1.default_map_connection AS \"default\",
|
t1.default_map_connection AS \"default\",
|
||||||
SUM(t2.num_zoom_levels) AS num_zoom_levels
|
SUM(t2.num_zoom_levels) AS num_zoom_levels
|
||||||
FROM tgis_map_has_tgis_map_con t1
|
FROM tgis_map_has_tgis_map_con t1
|
||||||
|
|
Loading…
Reference in New Issue