Re: type cast - Mailing list pgsql-sql

From Tom Lane
Subject Re: type cast
Date
Msg-id 3157.1281462157@sss.pgh.pa.us
Whole thread Raw
In response to type cast  (Imre Horvath <blemidon@gmail.com>)
List pgsql-sql
Imre Horvath <blemidon@gmail.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


pgsql-sql by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: type cast
Next
From: "Edward W. Rouse"
Date:
Subject: Duplicate rows