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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-hackers by date

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