function with unknown params

Поиск
Список
Период
Сортировка
От giozh
Тема function with unknown params
Дата
Msg-id 1373387435647-5763215.post@n5.nabble.com
обсуждение исходный текст
Ответы Re: function with unknown params  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Re: function with unknown params  (Raghavendra <raghavendra.rao@enterprisedb.com>)
Список pgsql-general
i've declared and implemented e function like:

CREATE OR REPLACE FUNCTION acquistoLotto(m_g INTEGER, grossista VARCHAR(20),
produttore BIGINT, costo INTEGER, dat DATE, descr VARCHAR(120), num_prod
INTEGER) RETURNS VOID AS $$

but when i'm trying to call it like

select acquistoLotto(0, 'grossista', 52187073424, 10, 22/1/2013, 'ciao ciao
ciao', 10);

an error occours:

ERROR:  function acquistolotto(integer, unknown, bigint, integer, integer,
unknown, integer) does not exist

How it's possible that the second and the sixth args it's unknown type? i've
create another function that takes varchar as  args and call in the same way
and no errors occours.



--
View this message in context: http://postgresql.1045698.n5.nabble.com/function-with-unknown-params-tp5763215.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


В списке pgsql-general по дате отправления:

Предыдущее
От: John DeSoi
Дата:
Сообщение: Re: replication stops working
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: function with unknown params