Re: Addition to / Clarification in 9.7.1. LIKE

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Addition to / Clarification in 9.7.1. LIKE
Дата
Msg-id 20180126132213.GF20836@momjian.us
обсуждение исходный текст
Ответ на Re: Addition to / Clarification in 9.7.1. LIKE  (GPT <gptmailinglists@gmail.com>)
Список pgsql-docs
On Fri, Jan 26, 2018 at 09:52:07AM +0100, GPT wrote:
> Between 1st (The LIKE expression...) and 2nd (If pattern does not...)
> paragraphs, it could be added something like:
> 
> <begin>
>                                                Caution
> Contrary to some other databases, in Postgresql only two characters
> are used in LIKE patterns: underscore (_) and percent sign (%).
> The use of any other character will lead to an error.
> <end>
> 
> The error message also would be more clarified to inform user about
> the use of not supported characters.

Uh, I still don't understand what error you are talking about.  Here are
some examples:

    SELECT 'abc' LIKE 'a_c';
     ?column?
    ----------
     t
    
    SELECT 'abc' LIKE 'a%c';
     ?column?
    ----------
     t
    
    SELECT 'abc' LIKE 'a%*c';
     ?column?
    ----------
     f

Can you show me an example?

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I.  As I am, so you will be. +
+                      Ancient Roman grave inscription +


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Correction of intermediate certificate handling
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Correction of intermediate certificate handling