Re: regex (not) matching null string

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: regex (not) matching null string
Дата
Msg-id 21970.1024686094@sss.pgh.pa.us
обсуждение исходный текст
Ответ на regex (not) matching null string  ("David M. Kaplan" <dmkaplan@ucdavis.edu>)
Список pgsql-bugs
"David M. Kaplan" <dmkaplan@ucdavis.edu> writes:
> I have found that !~ and !~* do not match the null string even when one
> would expect them to.

NULL strings won't match anything.  I can't tell whether your row 3 is
an empty string or a NULL --- but if it's a NULL, this behavior is
not a bug.  Try "s IS NULL" if you want to find NULLs.

            regards, tom lane

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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: regex (not) matching null string
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_hba.conf confusion