pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Najm Hashmi <najm@mondo-live.com>
To: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: SQL funtion
Date: Sat, 13 Jan 2001 12:39:22 -0500
Message-ID: <3A6092CA.1413C4E7@mondo-live.com> (raw)

Hi All,
 I have written a very simply function as follows:
create function song_info(int4) returns setof songs as'
   select songs.* from songs
   where $1=song_id'
   language 'sql';
when iIcall it  I get the following:    flipr=# select song_info(4);
                             ?column?
                                -----------
                             136428992
                                (1 row)

Is not it suppose to retrun me the tuple form songs table rather than
oid....
If  I want to get a complete tuple what can I do.
Thank you all for your help.
Regards, Najm.





Message-ID: <3A6092CA.1413C4E7@mondo-live.com>
Permalink:  ../3A6092CA.1413C4E7@mondo-live.com/
Also on:    postgresql.org/message-id/3A6092CA.1413C4E7@mondo-live.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: najm@mondo-live.com
  Subject: Re: SQL funtion
  In-Reply-To: <3A6092CA.1413C4E7@mondo-live.com>
  References: <3A6092CA.1413C4E7@mondo-live.com>

* 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