From: Roberto Mello <rmello@cc.usu.edu>
To: Jan Wieck <janwieck@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: extract and variables in PL/pgSQL
Date: Thu, 6 Jun 2002 10:10:06 -0600
Message-ID: <20020606161006.GA15097@cc.usu.edu> (raw)
In-Reply-To: <200206061220.g56CKtO26245@saturn.janwieck.net>
References: <20020605182054.GA1307@cc.usu.edu>
<200206061220.g56CKtO26245@saturn.janwieck.net>
On Thu, Jun 06, 2002 at 08:20:55AM -0400, Jan Wieck wrote:
> >
> > NOTICE: Error occurred while executing PL/pgSQL function zastras
> > NOTICE: line 5 at select into variables
>
> First you're missing the error message, which should read
> something like
>
> ERROR: parser: parse error at or near "$1"
>
> Doesn't help much here, but it is usually a good idea to
> include error messages in reports like this.
Sorry Jan, I meant to paste that.
> It works if you leave out the keyword "timestamp" writing
>
> SELECT INTO w_result EXTRACT(epoch from w_temp1);
>
> because the variable w_temp1 is known to be of type timestamp
> already and therefore the a_expr node on the right hand side
> of from is valid.
Oh, okay. Thanks.
-Roberto
--
+----| http://fslc.usu.edu/ USU Free Software & GNU/Linux Club |------+
Roberto Mello - Computer Science, USU - http://www.brasileiro.net/http://www.sdl.usu.edu/ - Space Dynamics Lab, Developer
Daddy, why do those people have to use Microsoft Windows?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: rmello@cc.usu.edu, janwieck@yahoo.com
Subject: Re: extract and variables in PL/pgSQL
In-Reply-To: <20020606161006.GA15097@cc.usu.edu>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox