Olá a todos,<br><br>Estou a tentar inserir um shapefile através do ícone &quot;Add postGis layer&quot;, e quando escolho o layer pretendido,<br>ele abre perfeitamente sem dar qualquer tipo de erro.<br><br>Se gravar o projecto Qgis e sair e depois tentar abrir o mesmo projecto, aparece esta mensagem de erro:<br>
<br><br><span style="background-color: rgb(255, 255, 204);">2 cursor states lost.
</span><p style="margin: 0px; text-indent: 0px; background-color: rgb(255, 255, 204);">SQL: declare qgisf13 binary cursor for select &quot;gid&quot;,asbinary(&quot;the_geom&quot;,&#39;NDR&#39;),&quot;OBJECTID_1&quot;::text,&quot;Dicofre&quot;::text,&quot;Freguesia&quot;::text,&quot;Municipio&quot;::text,&quot;Distrito_&quot;::text,&quot;Area_EA_Ha&quot;::text,&quot;Area_T_Ha&quot;::text,&quot;TAA&quot;::text,&quot;AREA&quot;::text,&quot;PERIMETER&quot;::text,&quot;OBJECTID&quot;::text,&quot;FREGS01_&quot;::text,&quot;FREGS01_ID&quot;::text,&quot;FRNUM01&quot;::text,&quot;AREA_ha&quot;::text,&quot;Shape_area&quot;::text,&quot;Shape_len&quot;::text from &quot;LIMITES_ADMINISTRATIVOS&quot;.&quot;LA_FREGUESIAS_PG&quot;</p>

<p style="margin: 0px; text-indent: 0px; background-color: rgb(255, 255, 204);">Result: 7 (ERROR:  DECLARE CURSOR can only be used in transaction blocks</p>
<p style="margin: 0px; text-indent: 0px; background-color: rgb(255, 255, 204);">)</p><p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;">Faço fechar a janela, e abre logo outra com outra mensagem de erro:</p>
<p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px; background-color: rgb(255, 255, 204);">1 cursor states lost.
</p><p style="margin: 0px; text-indent: 0px; background-color: rgb(255, 255, 204);">SQL: CLOSE qgisf12</p>
<p style="margin: 0px; text-indent: 0px; background-color: rgb(255, 255, 204);">Result: 7 (ERROR:  cursor &quot;qgisf12&quot; does not exist</p>
<p style="margin: 0px; text-indent: 0px; background-color: rgb(255, 255, 204);">)</p><p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;"></p><p style="margin: 0px; text-indent: 0px;">
Este ficheiro vem da CAOP 2010, e quando foi introduzido na BD &quot;PgAdmin III&quot;, nao deu nenhum erro.</p><p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;">Alguém sabe o que possa ser este erro, e como se pode corrigir?</p>
<p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;">Obrigado pela ajuda.</p><p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;">Orlando<br></p>