aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/help.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2000-05-26 15:47:18 +0000
committerBruce Momjian <bruce@momjian.us>2000-05-26 15:47:18 +0000
commitbe6e7717db53812248d89c2ee798bb80e54a00ee (patch)
tree7d087d76d0da3266b75d129a2e41b5f0cd0f5f3f /src/bin/psql/help.c
parent23b0387a94406f2d7a91da9a04f47ab0854144e5 (diff)
downloadpostgresql-be6e7717db53812248d89c2ee798bb80e54a00ee.tar.gz
postgresql-be6e7717db53812248d89c2ee798bb80e54a00ee.zip
Fix \h SELECT to not show SELECT INTO.
Diffstat (limited to 'src/bin/psql/help.c')
-rw-r--r--src/bin/psql/help.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c
index cce149869ff..8e988c47d9c 100644
--- a/src/bin/psql/help.c
+++ b/src/bin/psql/help.c
@@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.30 2000/05/12 16:13:44 petere Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.31 2000/05/26 15:47:18 momjian Exp $
*/
#include "postgres.h"
#include "help.h"
@@ -300,6 +300,9 @@ helpSQL(const char *topic)
"Description: %s\n"
"Syntax:\n%s\n\n",
QL_HELP[i].cmd, QL_HELP[i].help, QL_HELP[i].syntax);
+ /* If we have an exact match, exit. Fixes \h SELECT */
+ if (strcasecmp(topic, QL_HELP[i].cmd) == 0)
+ break;
}
}