<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {margin-right:0cm;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EstiloDeEmail19
        {font-family:Arial;
        color:navy;}
@page Section1
        {size:21.0cm 842.0pt;
        margin:1.0cm 1.0cm 1.0cm 1.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=PT-BR link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>Alguém aqui usa a app_sql_postgres no extensions?</span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>Estou com o seguinte problema!!!</span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'> </span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>Na primeira instrução query eu faço o Fetch
do retorno normalmente, mas na segunda instrução a instrução não consegue
receber os dados, mas a instrução esta correta. Faço da seguinte forma.</span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'> </span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'> </span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
lang=EN-US style='font-size:12.0pt;color:navy'>exten => s,1,</span></font><span
lang=EN-US> <font color=navy><span style='color:navy'>PGSQL(Connect connid
host=192.168.1.9 user=postg password= ***** dbname=dbcliente)</span></font></span></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
lang=EN-US style='font-size:12.0pt;color:navy'>exten => s,2,PGSQL(Query
resultid ${connid} SELECT nome FROM tb_clientes WHERE codigo = 1) </span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
lang=EN-US style='font-size:12.0pt;color:navy'>exten => s,3,PGSQL(Fetch
fetchid ${resultid} NomeCliente)</span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
lang=EN-US style='font-size:12.0pt;color:navy'>exten => s,4,PGSQL(Clear
${resultid})</span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
lang=EN-US style='font-size:12.0pt;color:navy'>exten => s,5,PGSQL(Query
resultid ${connid} SELECT creditos FROM tb_creditos WHERE codcli = 1) </span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
lang=EN-US style='font-size:12.0pt;color:navy'>exten => s,6,PGSQL(Fetch
fetchid ${resultid} NomeCliente)</span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
lang=EN-US style='font-size:12.0pt;color:navy'>exten => s,7,PGSQL(Clear
${resultid})</span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
lang=EN-US style='font-size:12.0pt;color:navy'>exten => b,8,PGSQL(Disconnect
${connid})</span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
lang=EN-US style='font-size:12.0pt;color:navy'> </span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>a query da prioridade 2 retorna o nome do usuario
e na prioridade 3 o fetch é executado corretamente.</span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>Mas nas prioridades 5 e 6 a query é
executada sem erros mas não retorna nada no fetch. Mas a instrução SQL esta
correta e</span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>existe a linha na tabela.</span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'> </span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>Alguém já teve problema semelhante? Como resolver?</span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'> </span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>Grato</span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'> </span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>Marcelo</span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'> </span></font></p>
<p class=MsoNormal><u><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'><span style='text-decoration:none'> </span></span></font></u></p>
<p class=MsoNormal><u><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'><span style='text-decoration:none'> </span></span></font></u></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'> </span></font></p>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'> </span></font></p>
</div>
</body>
</html>