Re: ERROR: Cannot display a value of type RECORD

From: "David Durst" <ddurst(at)larubber(dot)com>
To: <ddurst(at)larubber(dot)com>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: ERROR: Cannot display a value of type RECORD
Date: 2003-01-26 08:49:40
Message-ID: 44973.216.86.192.34.1043570980.squirrel@www.la-rubber.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I figured out the issue, DOOOOH stupid mistake

select entry_id, entry_description from
lookup_journal_entries(to_date('20030125','YYYYMMDD'),
to_date('20030125','YYYYMMDD'));

> I recieve this error when executing the following function:
>
> select lookup_journal_entries(to_date('20030125','YYYYMMDD'),
> to_date('20030125','YYYYMMDD'));
>
> Here is the function itself:
>
> create function lookup_journal_entries(date,date) returns setof journal
> as ' select * from journal where entry_date >= $1 OR entry_date <= $2'
> language 'SQL';
>
> Normally I would expect to see a pointer # returned from the above
> select but instead I get this error.
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Thomas Good 2003-01-26 13:48:01 Re: [SQL] Function for adding Money type
Previous Message David Durst 2003-01-26 08:41:00 ERROR: Cannot display a value of type RECORD