Re: psql misbehaves because of a simple typo - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: psql misbehaves because of a simple typo
Date
Msg-id Pine.LNX.4.30.0112281532100.870-100000@peter.localdomain
Whole thread Raw
In response to Re: psql misbehaves because of a simple typo  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: psql misbehaves because of a simple typo
List 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@gmx.net



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] Problem (bug?) with like
Next
From: Tom Lane
Date:
Subject: Re: [GENERAL] Problem (bug?) with like