Received: from candle.pha.pa.us (216-55-132-35.dsl.san-diego.abac.net [216.55.132.35]) by postgresql.org (Postfix) with ESMTP id 09ACE475A6B for ; Thu, 25 Apr 2002 11:47:31 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g3PFlG317946; Thu, 25 Apr 2002 11:47:16 -0400 (EDT) From: Bruce Momjian Message-Id: <200204251547.g3PFlG317946@candle.pha.pa.us> Subject: Re: Proper quoting of \e ? In-Reply-To: <20020425122253.A29150@itp.uni-hannover.de> To: Helge Kreutzmann Date: Thu, 25 Apr 2002 11:47:16 -0400 (EDT) Cc: pgsql-sql@postgresql.org X-Mailer: ELM [version 2.4ME+ PL97 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200204/307 X-Sequence-Number: 7571 Helge Kreutzmann wrote: -- Start of PGP signed section. > Hello ! > We have a database in SQL_ASCII in postgres 7.2.1 which contains among > other information document titles which are automatically retrieved. > I took care of quoting "`" but recently stumpled about "\e" which I > have problems working with. Example (in psql, but in php it is the same): > > SELECT title from written_by where title like 'An equation of state {\%'; > title > ------------------------------------------------------------------------------------------------- > An equation of state {\em \`a la} Carnahan-Starling for a five-dimensional fluid of hard hyperspheres > (1 row) > > works, but if I take one character more (or, later, the entire title), > it does not: > > SELECT title from written_by where title like 'An equation of state {\e%'; I noticed you escaped the % in the first query, but not the second. No idea how that effects things. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026