Commit 574eae28b6b4b2df3df42ee7282dc422c0a39fee
1 parent
d6a5142e
Exists in
master
and in
7 other branches
Correção na documentação
Showing
2 changed files
with
7 additions
and
2 deletions
Show diff stats
ferramentas/navegapostgis/dicionario.js
ferramentas/navegapostgis/index.js
... | ... | @@ -349,7 +349,7 @@ i3GEOF.navegapostgis = { |
349 | 349 | |
350 | 350 | for(i=0;i<n;i++){ |
351 | 351 | ck = ""; |
352 | - if(retorno[i].serial === true){ | |
352 | + if(retorno[i].serial === true || retorno[i].field === "gid"){ | |
353 | 353 | ck = "checked"; |
354 | 354 | gidok = true; |
355 | 355 | }else if(retorno[i].notnull === true && gidok === false){ |
... | ... | @@ -414,7 +414,7 @@ i3GEOF.navegapostgis = { |
414 | 414 | sql = the_geom+" from (\n\n select "+i+" from "+i3GEOF.navegapostgis.esquema+"."+i3GEOF.navegapostgis.tabela+"\n\n) as foo using unique "+gid+" using srid=4326"; |
415 | 415 | sql = sql.replace(",,",","); |
416 | 416 | if(gid === "" && i3GEOF.navegapostgis.tipo === "sql"){ |
417 | - alert("Coluna com ID unico nao foi escolhida!"); | |
417 | + alert($trad("gid",i3GEOF.navegapostgis.dicionario)); | |
418 | 418 | } |
419 | 419 | if(i3GEOF.navegapostgis.tipo === "sql"){ |
420 | 420 | $i("i3GEOFnavegapostgisSql").value = sql; | ... | ... |