pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Karthikeyan Sundaram <skarthi98@hotmail.com>
To: postgres sql <pgsql-sql@postgresql.org>
To: pgsql-php-owner@postgresql.org
Subject: quesion on functions calling from php
Date: Mon, 16 Apr 2007 15:58:07 -0700
Message-ID: <BAY131-W2B7152A114EF6B370FCBFB0520@phx.gbl> (raw)


Hi,
 
   I have written a plpgsql function media_format_func(p_in overlay_format_type) which returns int
 
$sql='select * from media_format_func((200,400,'640*481','jpg')::overlay_format_type)';
 
$result = $this->objDB->query($sql);
print_r($result,1);
 
  I should get a value as 10, instead I am 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 expected resul that I should get.  
 
 What may be the problem?
 
   I am using PEAR object module for the db connections.
 
  Please advise.
 
Regards
skarthi
 
_________________________________________________________________
Get a FREE Web site, company branded e-mail and more from Microsoft Office Live!
http://clk.atdmt.com/MRT/go/mcrssaub0540002919mrt/direct/01/=

view thread (2+ messages)  latest in thread

Message-ID: <BAY131-W2B7152A114EF6B370FCBFB0520@phx.gbl>
Permalink:  ../BAY131-W2B7152A114EF6B370FCBFB0520@phx.gbl/
Also on:    postgresql.org/message-id/BAY131-W2B7152A114EF6B370FCBFB0520@phx.gbl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: skarthi98@hotmail.com, pgsql-php-owner@postgresql.org
  Subject: Re: quesion on functions calling from php
  In-Reply-To: <BAY131-W2B7152A114EF6B370FCBFB0520@phx.gbl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox