Re: Bug in CREATE FUNCTION with character type

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

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

            regards, tom lane

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

Предыдущее
От: John Regehr
Дата:
Сообщение: Re: BUG #5416: int4inc() is wrong
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Bug in CREATE FUNCTION with character type (CONFIRMED BUG)