From: Tom Lane <tgl@sss.pgh.pa.us>
To: Imre Horvath <blemidon@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: type cast
Date: Tue, 10 Aug 2010 13:42:37 -0400
Message-ID: <3157.1281462157@sss.pgh.pa.us> (raw)
In-Reply-To: <1281458286.7072.2.camel@cytherian.blemidon.dyndns.org>
References: <1281458286.7072.2.camel@cytherian.blemidon.dyndns.org>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, blemidon@gmail.com
Subject: Re: type cast
In-Reply-To: <3157.1281462157@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox