Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 4A0CA86A54B for ; Wed, 18 Jan 2012 09:38:45 -0400 (AST) Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RnViq-0000Ms-Km for pgsql-bugs@postgresql.org; Wed, 18 Jan 2012 13:38:43 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RnVic-0003Uy-6Z for pgsql-bugs@postgresql.org; Wed, 18 Jan 2012 13:38:27 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1RnVib-0007dJ-Pl for pgsql-bugs@postgresql.org; Wed, 18 Jan 2012 13:38:25 +0000 Date: Wed, 18 Jan 2012 13:38:25 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6400: function arguments not accepted To: pgsql-bugs@postgresql.org From: knoch@ipa.fraunhofer.de X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/132 X-Sequence-Number: 32199 The following bug has been logged on the website: Bug reference: 6400 Logged by: Sandra Knoch Email address: knoch@ipa.fraunhofer.de PostgreSQL version: 9.0.6 Operating system: Windows Server 2007 SP2 Description: = I have a strange problem regarding functions with parameters. The parameters are not accepted and I always get the error column "user" does not exist, where user is the parameter name and not a column. The function looks like this: CREATE OR REPLACE FUNCTION tissue.insert_biopsy_data ( "user" integer, in_date date, in_description varchar, in_weight numeric, in_size numeric ) RETURNS integer AS $$ declare result integer; begin INSERT INTO tissue.biopsy (id_biopsy, f_user,introduction_date, description, weight, size) VALUES ( DEFAULT, user, in_date, in_description, in_weight, in_size ); SELECT id_biopsy FROM tissue.biopsy INTO result; Return result; end $$ LANGUAGE 'plpgsql' VOLATILE CALLED ON NULL INPUT SECURITY INVOKER COST 100; It works with my old PostgreSQL 8.4 version, but not with the new one. What is the problem here? Why is the argument not recognized as argument but as a column name? Thank you for any help!