Commit 3ba5a76bf9a12eaea2204e0efe8bb74e08720004
1 parent
48cdf8b0
Exists in
master
and in
7 other branches
--no commit message
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
ferramentas/saiku/esquemaxml.php
@@ -73,7 +73,7 @@ for ($i=0;$i < $c;++$i){ | @@ -73,7 +73,7 @@ for ($i=0;$i < $c;++$i){ | ||
73 | } | 73 | } |
74 | } | 74 | } |
75 | } | 75 | } |
76 | - } | 76 | + } |
77 | // | 77 | // |
78 | $registros = array(); | 78 | $registros = array(); |
79 | if($l->status == MS_DEFAULT && $l->getmetadata("METAESTAT_CODIGO_TIPO_REGIAO") != ""){ | 79 | if($l->status == MS_DEFAULT && $l->getmetadata("METAESTAT_CODIGO_TIPO_REGIAO") != ""){ |
@@ -113,6 +113,9 @@ $registros = ""; | @@ -113,6 +113,9 @@ $registros = ""; | ||
113 | //echo "<pre>";var_dump($regioes);exit; | 113 | //echo "<pre>";var_dump($regioes);exit; |
114 | $xml = "<Schema name='i3Geo Metaestat'>"; | 114 | $xml = "<Schema name='i3Geo Metaestat'>"; |
115 | //cria as dimensoes de tipo temporal | 115 | //cria as dimensoes de tipo temporal |
116 | +if(empty($saikuConfigDataSource['tabelaDimensaoTempo'])){ | ||
117 | + $saikuConfigDataSource['tabelaDimensaoTempo'] = "i3geo_metaestat.dim_tempo"; | ||
118 | +} | ||
116 | $sqlAno = "select nu_ano from ".$saikuConfigDataSource['tabelaDimensaoTempo']." group by nu_ano order by nu_ano"; | 119 | $sqlAno = "select nu_ano from ".$saikuConfigDataSource['tabelaDimensaoTempo']." group by nu_ano order by nu_ano"; |
117 | $sqlMes = "select nu_ano::text,nu_mes::text,ds_mes_abreviado as mes,COALESCE (nu_ano::text||'-'||nu_mes::text,nu_ano::text) as nu_anomes from ".$saikuConfigDataSource['tabelaDimensaoTempo']." group by nu_ano,nu_mes,mes,nu_anomes order by nu_ano,nu_mes"; | 120 | $sqlMes = "select nu_ano::text,nu_mes::text,ds_mes_abreviado as mes,COALESCE (nu_ano::text||'-'||nu_mes::text,nu_ano::text) as nu_anomes from ".$saikuConfigDataSource['tabelaDimensaoTempo']." group by nu_ano,nu_mes,mes,nu_anomes order by nu_ano,nu_mes"; |
118 | $xml .= " | 121 | $xml .= " |