Re: [HACKERS] Multiple parameters with the same name for functions.

2009-04-26 Thread Tom Lane
Gevik Babakhani writes: > As I was working on my code generator app, I noticed that one is able to > create a function with multiple parameters with the same name. I'm pretty sure this has come up before and we concluded that prohibiting it in CREATE FUNCTION wasn't terribly exciting. For insta

Re: [HACKERS] Multiple parameters with the same name for functions.

2009-04-26 Thread Gevik Babakhani
No. I meant: create function foo(PAR1 varchar, PAR1 int, PAR1 uuid). Note PAR1 Jaime Casanova wrote: On Sun, Apr 26, 2009 at 3:32 PM, Gevik Babakhani wrote: Hi, As I was working on my code generator app, I noticed that one is able to create a function with multiple parameters with the

Re: [HACKERS] Multiple parameters with the same name for functions.

2009-04-26 Thread Jaime Casanova
On Sun, Apr 26, 2009 at 3:32 PM, Gevik Babakhani wrote: > Hi, > > As I was working on my code generator app, I noticed that one is able to > create a function with multiple parameters with the same name. For example: > you mean this http://www.postgresql.org/docs/current/static/xfunc-overload.htm

[HACKERS] Multiple parameters with the same name for functions.

2009-04-26 Thread Gevik Babakhani
Hi, As I was working on my code generator app, I noticed that one is able to create a function with multiple parameters with the same name. For example: create or replace function func_test(id integer,id varchar, id timestamp) returns void as $$ begin raise notice '%',id; end; $$ language