Re: Bug in CREATE FUNCTION with character type

Поиск
Список
Период
Сортировка
От Pavel Golub
Тема Re: Bug in CREATE FUNCTION with character type
Дата
Msg-id 1258640729.20100415104333@gf.microolap.com
обсуждение исходный текст
Ответ на Re: Bug in CREATE FUNCTION with character type  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Hello, Tom.

You wrote:

TL> Pavel Golub <pavel@microolap.com> writes:
>> Example:

>> CREATE OR REPLACE FUNCTION test_char_function()
>>   RETURNS TABLE(id int, salesourcecode character) AS
>> $BODY$
>> VALUES (1, 'one'), (2, 'two'), (3, 'three');
>> $BODY$
>>   LANGUAGE 'sql'

>> pqfmod function from libpq library for salesourcecode column returns
>> 0, which is wrong. Who can ever imagine bpchar of length 0? :)

TL> I get -1 (indicating unspecified), which is what I'd expect.  You
TL> sure about the zero?

TL>                         regards, tom lane

My fault. Yes, of course, it's -1

--
With best wishes,
 Pavel                          mailto:pavel@gf.microolap.com

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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: Bug in CREATE FUNCTION with character type (CONFIRMED BUG)
Следующее
От: "Alex Soto Paez"
Дата:
Сообщение: BUG #5422: problems installing postgresql-8.4 deleted folder / .s.PGSQL.lock not initinot initiate the connecti