Re: hstore: null value is treated as empty string by avals function

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: hstore: null value is treated as empty string by avals function
Дата
Msg-id AANLkTimUQRuPWGm7eg4KS3Nv8ZfcVvrJ+UL4DoZS+wG4@mail.gmail.com
обсуждение исходный текст
Ответ на Re: hstore: null value is treated as empty string by avals function  (Itagaki Takahiro <itagaki.takahiro@gmail.com>)
Список pgsql-bugs
On Mon, Sep 27, 2010 at 4:34 AM, Itagaki Takahiro
<itagaki.takahiro@gmail.com> wrote:
> On Mon, Sep 27, 2010 at 2:36 PM, Alexey Bashtanov <bashtanov@nasvete.ru> =
wrote:
>> hstore: null value is treated as empty string by avals function
>>
>> # select avals('gfds'=3D>null) =3D array[null], avals('gfds'=3D>null) =
=3D
>> array[''], version();
>> =A0?column? | ?column? |
>> =A0 =A0version
>> ----------+----------+--------------------------------------------------=
----------------------------------------------------------------
>> =A0f =A0 =A0 =A0 =A0| t =A0 =A0 =A0 =A0| PostgreSQL 8.4.4 on x86_64-redh=
at-linux-gnu,
>> compiled by GCC gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46), 64-bit
>> (1 row)
>>
>> got f,t
>> expected t,f
>> hope the problem is clear
>
> I found 9.0 and 9.1dev returns t,f as expected.
> Is it an incompatibility between 8.4 and 9.0?

Yeah, seems to be.  As far as I can see, the 8.4 behavior is flat-out wrong.

rhaas=3D# select avals(hstore('gfds', null::text));
 avals
-------
 {""}
(1 row)

--=20
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

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

Предыдущее
От: Johannes.Meidert@rohde-schwarz.com
Дата:
Сообщение: Re: BUG #5698: pg_dump (8.3.11) does not consider constrains
Следующее
От: Netskin | Corin Langosch
Дата:
Сообщение: Re: BUG #5702: pg fails to use a conditional index even the where clause matches the condition