Re: Datatypes in PL/PSQL functions with multiple arguments

From: Richard Huxton <dev(at)archonet(dot)com>
To: Benjamin Holmberg <benjamin(dot)holmberg(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Datatypes in PL/PSQL functions with multiple arguments
Date: 2005-04-19 17:14:44
Message-ID: 42653C84.7030607@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Benjamin Holmberg wrote:
>
> This is the error message I'm getting by using: ''arg_id'' instead of:
> (CAST(arg_id
> AS integer))
> SELECT production_scheduled_for_date('2005-05-12', '49');
> ERROR: invalid input syntax for integer: "arg_id"

That's because ''arg_id'' is the string value "arg_id", those six
characters rather than the value of any variable.

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Benjamin Holmberg 2005-04-19 17:29:17 Re: Datatypes in PL/PSQL functions with multiple arguments
Previous Message vinita bansal 2005-04-19 17:13:03 reorder table data