Fixed psql \h SELECT

Started by Bruce Momjianalmost 26 years ago1 messageshackers
Jump to latest
#1Bruce Momjian
bruce@momjian.us

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@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026