Skip site navigation (1) Skip section navigation (2)

Re: psql misbehaves because of a simple typo

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Serguei Mokhov <sa_mokho(at)alcor(dot)concordia(dot)ca>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql misbehaves because of a simple typo
Date: 2001-12-28 18:44:53
Message-ID: Pine.LNX.4.30.0112281532100.870-100000@peter.localdomain (view raw or flat)
Thread:
Lists: pgsql-hackers
Bruce Momjian writes:

> OK, here is a patch for 7.3.  It clears the paren counter only when the
> buffer is cleared.  Forget what I said about recomputing quotes.  You
> can't use backslash commands while you are in quotes.

I don't think this works when the command is \g because you're testing for
the cleared buffer too early.  Look at what happens under "if
(slashCmdStatus == CMD_SEND)".  The test should be after that (around line
489 in original copy).

-- 
Peter Eisentraut   peter_e(at)gmx(dot)net


In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2001-12-28 18:54:05
Subject: Re: [GENERAL] Problem (bug?) with like
Previous:From: Bruce MomjianDate: 2001-12-28 18:35:41
Subject: Re: Problem (bug?) with like

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group