From 9dee4d9b5609261a1dbccb6d1ba902d4f505b22d Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Sun, 20 Apr 2014 14:08:03 +0000 Subject: [PATCH] V6 - correção na junção de tabelas no sistema de metadados estatísticos --- ferramentas/metaestat/analise.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ferramentas/metaestat/analise.php b/ferramentas/metaestat/analise.php index d200740..2e1a9c1 100644 --- a/ferramentas/metaestat/analise.php +++ b/ferramentas/metaestat/analise.php @@ -721,8 +721,10 @@ function juntaMedidasVariaveis($map_file,$layerNames,$nome,$colunascalc,$formula $n = count($sqls); $cwhere = array(); + //$colunasWhere = array(); for($i=1;$i<$n;$i++){ - $cwhere[] = "tabela0.".$colunasIdentificador[0]."::text = "."tabela".$i.".".$colunasIdentificador[$i]."::text"; + $cwhere[] = "tabela0.".$gid."::text = "."tabela".$i.".".$gid."::text"; + //$colunasWhere[] = } $colunasDados = array(); $itens = array($gid,"regiao"); -- libgit2 0.21.2