From: Tomasz Myrta <jasiek@klaster.net>
To: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Subject: pl/pgsql errors
Date: Mon, 03 Mar 2003 12:32:51 +0100
Message-ID: <3E633D63.7050406@klaster.net> (raw)
Hi
create function....
declare
some_field integer;
begin
some_field=1;
insert into some_table (some_field) values (some_field);
end;
When we try to execute such function, we get:
"ERROR: parser: parse error at or near "$1" at character..."
Well, example above is clear enough to find, that I declared field with
the same name as in a table. I lost a lot of time trying to find mistake
inside long functions until I remembered, what this strange error mean.
Would it be difficult to add special ERROR for this case? It annoyed me
so many times...
Regards,
Tomasz Myrta
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: jasiek@klaster.net
Subject: Re: pl/pgsql errors
In-Reply-To: <3E633D63.7050406@klaster.net>
* 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