Re: Upgrading from 7.1.2 to 7.3.3 - function may need to add explicit typecasts

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Upgrading from 7.1.2 to 7.3.3 - function may need to add explicit typecasts
Дата
Msg-id 16841.1062041647@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Upgrading from 7.1.2 to 7.3.3 - function may need to add explicit typecasts  (Stuart Woodward <woodward@garage.co.jp>)
Список pgsql-novice
Stuart Woodward <woodward@garage.co.jp> writes:
> java.sql.SQLException: ERROR:  Function calcprice(numeric, integer, numeric) does not exist

> CREATE FUNCTION calcprice (float8, smallint, float8)

There's no implicit coercion from integer to smallint in 7.3.  I'd
suggest changing the function's declared argument type to integer.

            regards, tom lane

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

Предыдущее
От: Juan Francisco Diaz
Дата:
Сообщение: Returning a setof integer
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Returning SETOF INTEGER mystery...