Re: quesion on functions calling from php

Поиск
Список
Период
Сортировка
От Tommy Gildseth
Тема Re: quesion on functions calling from php
Дата
Msg-id 4624645D.70002@gildseth.com
обсуждение исходный текст
Ответ на quesion on functions calling from php  (Karthikeyan Sundaram <skarthi98@hotmail.com>)
Список pgsql-sql
Karthikeyan Sundaram wrote:
> 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. 

Try one of the methods $this->objDB->getRow($sql), 
$this->objDB->getAll($sql) or $this->objDB->getOne($sql) instead.
Also, have a look at the documentation at pear.php.net

-- 
Tommy
www.gildseth.com



В списке pgsql-sql по дате отправления:

Предыдущее
От: Karthikeyan Sundaram
Дата:
Сообщение: quesion on functions calling from php
Следующее
От: "Radhika Sambamurti"
Дата:
Сообщение: Floating point type to store numbers