From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Imre Horvath <blemidon(at)gmail(dot)com> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: type cast |
Date: | 2010-08-10 17:42:37 |
Message-ID: | 3157.1281462157@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Imre Horvath <blemidon(at)gmail(dot)com> writes:
> I've got a plpython function, with a character varying param.
> I can call it from sql.
> But when i try to call it with psycopg2.callproc('testfunc', ['test']),
> i've got the error:
> function testfunc(unknown) does not exist
> HINT: No function matches the given name and argument types. You might
> need to add explicit type casts.
That doesn't sound like a type cast issue. I'd bet you connected to the
wrong database from your python app, or are using a different
search_path setting, or something along that line.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Edward W. Rouse | 2010-08-10 19:18:38 | Duplicate rows |
Previous Message | Peter Eisentraut | 2010-08-10 16:48:14 | Re: type cast |