Skip site navigation (1) Skip section navigation (2)

Re: BUG #3695: Pgsql does not report non existing function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Roger" <ramoloney(at)hotmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3695: Pgsql does not report non existing function
Date: 2007-10-25 14:36:14
Message-ID: 15410.1193322974@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
"Roger" <ramoloney(at)hotmail(dot)com> writes:
> Description:        Pgsql does not report non existing function

Works fine for me:

regression=# create function foo() returns int as $$
regression$# declare x int;
regression$# begin 
regression$#   x := nosuchfunc(42);
regression$# end$$ language plpgsql;
CREATE FUNCTION
regression=# select foo();
ERROR:  function nosuchfunc(integer) does not exist
LINE 1: SELECT  nosuchfunc(42)
                ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
QUERY:  SELECT  nosuchfunc(42)
CONTEXT:  PL/pgSQL function "foo" line 3 at assignment
regression=#

			regards, tom lane

In response to

pgsql-bugs by date

Next:From: Marc MaminDate: 2007-10-25 14:49:16
Subject: BUG #3697: utf8 issue: can not reimport a table that was successfully exported.
Previous:From: Gregory StarkDate: 2007-10-25 14:18:04
Subject: Re: Yet another problem with ILIKE and UTF-8

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group