Fixed psql \h SELECT

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Fixed psql \h SELECT
Date: 2000-05-26 15:42:22
Message-ID: 200005261542.LAA25356@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I added the following test to psql/help.c:

/* if we have an exact match, exit, fixes \h SELECT */
if (strcasecmp(topic, QL_HELP[i].cmd) == 0)
break;

This will exit the help loop if an exact match has already been found.
This prevents \h select from showing SELECT INTO help. Peter, hope you
are OK with this.

--
Bruce Momjian | http://www.op.net/~candle
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

Browse pgsql-hackers by date

  From Date Subject
Next Message Karel Zak 2000-05-26 16:06:47 possible bug in RI?
Previous Message Tom Lane 2000-05-26 15:39:56 Re: Berkeley DB...