Re: C-language stored function and float4 type

Поиск
Список
Период
Сортировка
От whiplash
Тема Re: C-language stored function and float4 type
Дата
Msg-id 525E6DF1.9000404@bss.org.ua
обсуждение исходный текст
Ответ на Re: C-language stored function and float4 type  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Sorry, I created an overloaded function and forgot about it.
> whiplash <whiplash@bss.org.ua> writes:
>> Hello! I have C-language stored function like this:
>> CREATE FUNCTION testfunc ( x real, y real )
>> RETURNS real AS
>> 'testfunc'
>> LANGUAGE C STRICT;
>> If i use this function (SELECT testfunc ( 0.1, 0.2 )) I get result with
>> type "double precision".
> What's your basis for asserting that?  The function is clearly defined
> to return float4.
>
>             regards, tom lane
>



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

Предыдущее
От: ginkgo36
Дата:
Сообщение: Help function to sort string
Следующее
От: Kaveh Mousavi Zamani
Дата:
Сообщение: Missing record in binary replica 9.3.0