quesion on functions calling from php - Mailing list pgsql-sql

From Karthikeyan Sundaram
Subject quesion on functions calling from php
Date
Msg-id BAY131-W2B7152A114EF6B370FCBFB0520@phx.gbl
Whole thread Raw
Responses Re: quesion on functions calling from php  (Tommy Gildseth <tommy@gildseth.com>)
List pgsql-sql
Hi,<br />  <br />    I have written a plpgsql function media_format_func(p_in overlay_format_type) which returns
int<br/>  <br /> $sql='select * from media_format_func((200,400,'640*481','jpg')::overlay_format_type)';<br />  <br />
$result= $this->objDB->query($sql);<br /> print_r($result,1);<br />  <br />   I should get a value as 10, instead
Iam getting the Resource ID as 128 which is wrong I guess I am getting the output as an object and I am not getting the
expectedresul that I should get.  <br />  <br />  What may be the problem?<br />  <br />    I am using PEAR object
modulefor the db connections.<br />  <br />   Please advise.<br />  <br /> Regards<br /> skarthi<br />  <br /><br /><hr
/>WithWindows Live Hotmail you can now see trouble.before he arrives. <a href="http://Newlivehotmail.com"
target="_new">Checkit out for yourself.</a> 

pgsql-sql by date:

Previous
From: Andrew Sullivan
Date:
Subject: Re: A long-running transaction
Next
From: Tommy Gildseth
Date:
Subject: Re: quesion on functions calling from php