From: Herouth Maoz <herouth@oumail.openu.ac.il>
To: Bruce Momjian <maillist@candle.pha.pa.us>
To: zalman@netcom.com
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] How match percent sign in SELECT using LIKE?
Date: Wed, 17 Mar 1999 11:58:46 +0200
Message-ID: <l03110701b3152aaa9b05@[147.233.159.109]> (raw)
In-Reply-To: <199903162226.RAA20904@candle.pha.pa.us>
References: <199903162051.MAA01651@netcom15.netcom.com>
At 00:26 +0200 on 17/03/1999, Bruce Momjian wrote:
> >
> > But I don't have in depth knowledge of the Postgres SQL parser and
> > evaluator so I may be way off base.
>
> That is also an excellent idea. Just convert their escape to \ inside
> the parser. Of course, they still have to use \\ to get a \, as in any
> string. Great idea.
Just a quick note about compliance: It has to work two ways. That is, if
someone imports an SQL script from his previous database (or don't you
think people will be migrating *to* postgres, only *from* it?), it has to
work.
Thus, if someone has a script written to the SQL92 standard, he is allowed
to use a construct like
...WHERE pathname LIKE 'C:\WINDOWS\%'
Without encountering oddities.
Herouth
--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: herouth@oumail.openu.ac.il, maillist@candle.pha.pa.us, zalman@netcom.com
Subject: Re: [SQL] How match percent sign in SELECT using LIKE?
In-Reply-To: <l03110701b3152aaa9b05@[147.233.159.109]>
References: <199903162051.MAA01651@netcom15.netcom.com> <l03110701b3152aaa9b05@[147.233.159.109]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox