Re: Datatypes in PL/PSQL functions with multiple arguments - Mailing list pgsql-general

From Richard Huxton
Subject Re: Datatypes in PL/PSQL functions with multiple arguments
Date
Msg-id 42653C84.7030607@archonet.com
Whole thread Raw
In response to Re: Datatypes in PL/PSQL functions with multiple arguments  (Benjamin Holmberg <benjamin.holmberg@gmail.com>)
Responses Re: Datatypes in PL/PSQL functions with multiple arguments  (Benjamin Holmberg <benjamin.holmberg@gmail.com>)
Regular expression. How to disable ALL meta-character in a regular expression  (David Gagnon <dgagnon@siunik.com>)
List 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

pgsql-general by date:

Previous
From: "vinita bansal"
Date:
Subject: reorder table data
Next
From: Benjamin Holmberg
Date:
Subject: Re: Datatypes in PL/PSQL functions with multiple arguments