Re: stored proc help

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Jason Tesser <JTesser(at)nbbc(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: stored proc help
Date: 2005-07-14 01:18:13
Message-ID: 20050714011813.GA96157@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jul 13, 2005 at 01:28:45PM -0500, Jason Tesser wrote:
> I have the following store dproc but when I run it I am getting the
> error
>
> ERROR: invalid input syntax for integer: "(1)"
> CONTEXT: PL/pgSQL function "irispermissionget" line 9 at return next
>
> What am I doing wrong?

The function is declared to return SETOF INTEGER, but you return a
RECORD variable:

> return next returnRec;

Try returning returnRec.permissionid instead.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tim Allen 2005-07-14 01:18:30 Re: chosing a database name
Previous Message Thomas F. O'Connell 2005-07-14 01:06:55 ERROR: could not open relation