public inbox for [email protected]
help / color / mirror / Atom feedFrom: Bruce Momjian <[email protected]>
To: GPT <[email protected]>
Cc: [email protected]
Subject: Re: Addition to / Clarification in 9.7.1. LIKE
Date: Fri, 26 Jan 2018 08:22:13 -0500
Message-ID: <[email protected]> (raw)
In-Reply-To: <CADep2PMy2cVifjYgnDoxRsT7CESQ1v4a1sTAUkPPBtcOap4JEg@mail.gmail.com>
References: <[email protected]>
<[email protected]>
<CADep2PMy2cVifjYgnDoxRsT7CESQ1v4a1sTAUkPPBtcOap4JEg@mail.gmail.com>
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 <[email protected]> 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 +
view thread (4+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Addition to / Clarification in 9.7.1. LIKE
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox