Re: Smallint - Integer Casting Problems in Plpgsql functions
В списке pgsql-general по дате отправления:
| От | Richard Huxton |
|---|---|
| Тема | Re: Smallint - Integer Casting Problems in Plpgsql functions |
| Дата | |
| Msg-id | 200403171726.01377.dev@archonet.com обсуждение исходный текст |
| Ответ на | Smallint - Integer Casting Problems in Plpgsql functions (Denis Gasparin <denis@edistar.com>) |
| Ответы |
Re: Smallint - Integer Casting Problems in Plpgsql functions
|
| Список | pgsql-general |
On Wednesday 17 March 2004 15:54, Denis Gasparin wrote:
> Hi, i'm upgrading our database from postgresql 7.2.3 to 7.4.2.
> The import went fine but i have some casting problems with plpgsql
> functions.
>
> I've create a test function with this code:
>
> create function test(varchar,smallint,integer) returns integer as '
> select test('aaa',1,1);
> gives me the following error:
> ERROR: function test("unknown", integer, integer) does not exist
Easiest solution is to just define the function as accepting integer rather
than smallint.
I believe the typeing will be smarter in 7.5 but don't know if it will affect
this situation.
--
Richard Huxton
Archonet Ltd
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера