Commit 85f6a97177201b3aa54deaaaba515fca120f32bb

Authored by Edmar Moretti
1 parent bfb0739f

$1

Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
admin/php/classe_metaestat.php
... ... @@ -445,7 +445,6 @@ class Metaestat{
445 445 " FROM ".$dadosgeo["esquemadb"].".".$dadosgeo["tabela"]." AS regiao ".
446 446 " INNER JOIN ( __SQLDADOS__ ) ".
447 447 " AS j ON j.cod_regiao::text = regiao.".$dadosgeo["identificador"]."::text";
448   -
449 448 //inclui os sqls de regioes de niveis inferiores
450 449 if($agregaregiao == true){
451 450 $hierarquia = $this->regiaoFilhaAoPai($dados["codigo_tipo_regiao"],$codigo_tipo_regiao);
... ... @@ -963,8 +962,8 @@ class Metaestat{
963 962 if($limite != ""){
964 963 $sqlf .= " limit ".$limite;
965 964 }
  965 + $sqlf = str_replace(", FROM"," FROM",$sqlf);
966 966 $metaVariavel = $this->listaMedidaVariavel("",$id_medida_variavel);
967   -
968 967 if(!empty($metaVariavel["codigo_estat_conexao"])){
969 968 $c = $this->listaConexao($metaVariavel["codigo_estat_conexao"],true);
970 969 $dbhold = $this->dbh;
... ...