Re: LIKE ESCAPE doc fix (was Re: [DOCS] functions-matching

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Joe Conway <mail(at)joeconway(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: LIKE ESCAPE doc fix (was Re: [DOCS] functions-matching
Date: 2002-08-22 04:56:53
Message-ID: 200208220456.g7M4urv08376@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-patches


Patch applied. Thanks.

---------------------------------------------------------------------------

Joe Conway wrote:
> Tom Lane wrote:
> > Joe Conway <mail(at)joeconway(dot)com> 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?
>
> Here's a small doc patch to fix this issue. Please apply.
>
> Thanks,
>
> Joe
>

> Index: doc/src/sgml/func.sgml
> ===================================================================
> RCS file: /opt/src/cvs/pgsql-server/doc/src/sgml/func.sgml,v
> retrieving revision 1.114
> diff -c -r1.114 func.sgml
> *** doc/src/sgml/func.sgml 21 Aug 2002 05:25:49 -0000 1.114
> --- doc/src/sgml/func.sgml 21 Aug 2002 05:42:49 -0000
> ***************
> *** 2238,2246 ****
> <para>
> It's also possible to select no escape character by writing
> <literal>ESCAPE ''</literal>. This effectively disables the
> ! escape mechanism and
> ! turns off the special meaning of underscore and percent signs in
> ! the pattern.
> </para>
>
> <para>
> --- 2238,2245 ----
> <para>
> It's also possible to select no escape character by writing
> <literal>ESCAPE ''</literal>. This effectively disables the
> ! escape mechanism, which makes it impossible to turn off the
> ! special meaning of underscore and percent signs in the pattern.
> </para>
>
> <para>

>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Viktor Vislobokov 2002-08-23 02:41:17 Russian version of FAQ
Previous Message Bruce Momjian 2002-08-22 04:52:04 Re: Add cross-references re schema search path

Browse pgsql-patches by date

  From Date Subject
Next Message John Gray 2002-08-22 15:31:34 Minor TOAST patch (regression test and source comment)
Previous Message Bruce Momjian 2002-08-22 04:51:16 Re: Truncate