Re: Trouble accessing %ROWTYPE attributes returned by function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Leon Starr <leon_starr(at)modelint(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Trouble accessing %ROWTYPE attributes returned by function
Date: 2010-08-05 16:20:53
Message-ID: 15363.1281025253@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Leon Starr <leon_starr(at)modelint(dot)com> writes:
> BAD (attributes concatenated) why?
> contracts=# select getContracts();
> getcontracts
> -----------------
> (1,USGE,Renew)
> (2,USGE,Renew)
> (3,USGE,Renew)

This is expected. Try doing this if you want to "explode" the
sub-columns:

select * from getContracts();

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2010-08-05 16:31:35 Re: Looking for SKYLINE command
Previous Message Jaime Casanova 2010-08-05 16:16:22 Re: Looking for SKYLINE command