From 507976a61f0c1d446b978890c04670572e5e48c5 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Thu, 20 Oct 2016 00:18:04 -0200 Subject: [PATCH] Correção na montagem da expressão de seleção quando se usa querybyattributes na versão 7 do Mapserver --- admin/admin.db | Bin 340992 -> 0 bytes classesphp/classe_selecao.php | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/admin.db b/admin/admin.db index 541d945..c0d2985 100755 Binary files a/admin/admin.db and b/admin/admin.db differ diff --git a/classesphp/classe_selecao.php b/classesphp/classe_selecao.php index 7f43aa5..ea14bc9 100755 --- a/classesphp/classe_selecao.php +++ b/classesphp/classe_selecao.php @@ -518,8 +518,8 @@ $valor - Valor. $shpi = array(); $filtro = str_replace("|","'",$filtro); - if ($this->layer->connectiontype == MS_POSTGIS) - { + + if ($this->layer->connectiontype == MS_POSTGIS && $this->v < 7) { $filtro = str_replace("'[","",$filtro); $filtro = str_replace("[","",$filtro); $filtro = str_replace("]'","",$filtro); @@ -527,8 +527,8 @@ $valor - Valor. $filtro = str_replace("("," ",$filtro); $filtro = str_replace(")"," ",$filtro); } - $teste = $this->layer->querybyattributes($items[0],$filtro,1); + $teste = $this->layer->querybyattributes($items[0],$filtro,1); if($teste != MS_SUCCESS){ $teste = $this->layer->queryByAttributes($items[0], mb_convert_encoding($filtro,"ISO-8859-1","UTF-8"), 1); } -- libgit2 0.21.2