Re: type cast

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: type cast
Дата
Msg-id 3157.1281462157@sss.pgh.pa.us
обсуждение исходный текст
Ответ на type cast  (Imre Horvath <blemidon@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: type cast
Следующее
От: "Edward W. Rouse"
Дата:
Сообщение: Duplicate rows