Re: BUG #13747: Like clause ignoring raws with null value

From: "Shulgin, Oleksandr" <oleksandr(dot)shulgin(at)zalando(dot)de>
To: dtyshecky(at)gmail(dot)com
Cc: Pg Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #13747: Like clause ignoring raws with null value
Date: 2015-10-30 16:50:12
Message-ID: CACACo5S4ghVbC5QA8iaJW0EHR_+TVshUnag5zc=DGkkfGh0trQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Fri, Oct 30, 2015 at 12:08 AM, <dtyshecky(at)gmail(dot)com> wrote:

> The following bug has been logged on the website:
>
> Bug reference: 13747
> Logged by: Denys Tyshetskyy
> Email address: dtyshecky(at)gmail(dot)com
> PostgreSQL version: 9.2.0
> Operating system: ubuntu
> Description:
>
> I am executing select with like clause on the field X (select * from table
> where x like '%ABC%')
>
> In result I don't receive the raws with null in X column so I have to
> manually state (where X is null or X like ...)
>
> I would expect to receive columns with null.
>

But why? I would understand if your pattern was '%', but it's really
strange to expect that with the pattern you've shown.

--
Alex

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2015-10-30 16:51:43 Re: BUG #13750: Autovacuum slows down with large numbers of tables. More workers makes it slower.
Previous Message Jeff Janes 2015-10-30 16:16:52 Re: BUG #13750: Autovacuum slows down with large numbers of tables. More workers makes it slower.