public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: Joe Conway <[email protected]>
Cc: [email protected]
Subject: Re: functions-matching correct?
Date: Mon, 19 Aug 2002 17:21:39 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

Joe Conway <[email protected]> writes:
> 7.2.1 docs:
> http://www.postgresql.org/idocs/index.php?functions-matching.html#FUNCTIONS-LIKE

> " It's also possible to select no escape character by writing ESCAPE ''. 
> In this case there is no way to turn off the special meaning of 
> underscore and percent signs in the pattern."

> 7.3 development docs:
> http://developer.postgresql.org/docs/postgres/functions-matching.html#FUNCTIONS-LIKE

> " It's also possible to select no escape character by writing ESCAPE ''. 
> This effectively disables the escape mechanism and turns off the special 
> meaning of underscore and percent signs in the pattern."

> I think the former is still correct, isn't it?

Yes, as is easily proven by experiment:

regression=# select 'foo' LIKE 'f%';
 ?column?
----------
 t
(1 row)

regression=# select 'foo' LIKE 'f%' escape '';
 ?column?
----------
 t
(1 row)

Who put that change in?

			regards, tom lane



view thread (5+ messages)  latest in thread

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: functions-matching correct?
  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