pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Helge Kreutzmann <kreutzm@itp.uni-hannover.de>
To: pgsql-sql@postgresql.org
Subject: Re: Proper quoting of \e ?
Date: Thu, 25 Apr 2002 17:57:18 +0200
Message-ID: <20020425175718.B31354@itp.uni-hannover.de> (raw)
In-Reply-To: <200204251547.g3PFlG317946@candle.pha.pa.us>
References: <20020425122253.A29150@itp.uni-hannover.de>
	<200204251547.g3PFlG317946@candle.pha.pa.us>

On Thu, Apr 25, 2002 at 11:47:16AM -0400, Bruce Momjian wrote:
> > 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.

Well, the "\" is part of the strings to be outputed, so I did not
intend to quota anything. If I replace \ to \\ in my first query, I
get also no result.

Greetings

          Helge
-- 
Helge Kreutzmann, Dipl.-Phys.               Helge.Kreutzmann@itp.uni-hannover.de
  gpg signed mail preferred    gpg-key: finger kreutzm@rigel.itp.uni-hannover.de
    64bit GNU powered                  http://www.itp.uni-hannover.de/~kreutzm
       Help keep free software "libre": http://www.freepatents.org/

view thread (5+ messages)  latest in thread

Message-ID: <20020425175718.B31354@itp.uni-hannover.de>
Permalink:  ../20020425175718.B31354@itp.uni-hannover.de/
Also on:    postgresql.org/message-id/20020425175718.B31354@itp.uni-hannover.de

 · 

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: pgsql-sql@postgresql.org
  Cc: kreutzm@itp.uni-hannover.de
  Subject: Re: Proper quoting of \e ?
  In-Reply-To: <20020425175718.B31354@itp.uni-hannover.de>

* 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