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