Re: plpgsql function errors

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: "Juan Casero (FL FLC)" <Juan(dot)Casero(at)wholefoods(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: plpgsql function errors
Date: 2005-02-04 18:31:01
Message-ID: 20050204183100.GF14840@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Feb 04, 2005 at 12:22:43PM -0600, Juan Casero (FL FLC) wrote:
> I tried putting those values into strings like you describe below but
> then the server bombs. e.g...
>
> customer_service=# select
> trx_id('JUANCASERO3055128218','CREDIT','02/02/05','1','1','Aventura','02
> /01/05','Tom');
> ERROR: function trx_id("unknown", "unknown", "unknown", "unknown",
> "unknown", "unknown", "unknown", "unknown") does not exist
> HINT: No function matches the given name and argument types. You may
> need to add explicit type casts.
> customer_service=#

Try checking your function definition. I'm counting nine parameters but
you only gave eight...

Also, your example with type casts, you *still* need to use quotes. You
*always* need to quote strings.

--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2005-02-04 18:55:43 Re: plpgsql function errors
Previous Message Juan Casero (FL FLC) 2005-02-04 18:28:22 Re: Best Linux Distribution