pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: SANDEEP CHIBBER <sandeepchibber@hotmail.com>
To: pgsql-ports@postgresql.org
Date: Fri, 24 May 2002 10:46:21 +0000
Message-ID: <F32fRfTSNtm4trpzyn30000c1bb@hotmail.com> (raw)


Your name  : Sandeep Chibber
Your email address : sandeep@vreach.net


System Configuration
---------------------
  Architecture (example: Intel Pentium)   : Intel Pentium

  Operating System (example: Linux 2.0.26 ELF)  : Windows 2000 Professional

  PostgreSQL version (example: PostgreSQL-7.2.1):   PostgreSQL-7.2.1

  Compiler used (example:  gcc 2.95.2)  :


Please enter a FULL description of your problem:
------------------------------------------------
We have create a function which will retreive all columns along with the 
multiple rows of data.
Only one Column is displayed and it has an id not the data.
If there are more than one rows then same id will be repeated as many 
times.Even if there is one row only a single id column is displayed




Please describe a way to repeat the problem.   Please try to provide a
concise reproducible example, if at all possible:
----------------------------------------------------------------------
Table structure

create table nodes (name varchar(50),parent varchar (50))

CREATE FUNCTION listchildren2(text) RETURNS SETOF nodes AS
'SELECT name ,parent FROM nodes WHERE parent > $1;'
LANGUAGE 'SQL';


select listchildren2('0')




If you know how this problem might be fixed, list the solution below:
---------------------------------------------------------------------
Sorry no ideas

Thanks

Sandeep Chibber




_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com




Message-ID: <F32fRfTSNtm4trpzyn30000c1bb@hotmail.com>
Permalink:  ../F32fRfTSNtm4trpzyn30000c1bb@hotmail.com/
Also on:    postgresql.org/message-id/F32fRfTSNtm4trpzyn30000c1bb@hotmail.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-ports@postgresql.org
  Cc: sandeepchibber@hotmail.com
  Subject: Re: 
  In-Reply-To: <F32fRfTSNtm4trpzyn30000c1bb@hotmail.com>
  References: <F32fRfTSNtm4trpzyn30000c1bb@hotmail.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